By Giik — February 2, 2019
Returns whether the special button is pressed while also taking the right stick into account if it’s set to Special.
Argument | Type | Description |
---|
dir | :real | The direction to check. |
▼ Indexes Reference
DIR_ANY
DIR_NONE
DIR_UP
DIR_DOWN
DIR_LEFT
DIR_RIGHT
Example, called from attack_update.gml:
if ( attack == AT_USPECIAL && window == 4 && is_special_pressed( DIR_DOWN ) ) {
set_attack( AT_USPECIAL_2 );
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Returns the Y position of a specified stage marker. Will return -1 if the marker is not found.
Argument | Type | Description |
---|
index | :real | The index of the stage marker to find. |
Example, called from a stage’s article1_update.gml:
if ( y >= get_marker_y( 6 ) ) {
instance_destroy();
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Returns the X position of a specified stage marker. Will return -1 if the marker is not found.
Argument | Type | Description |
---|
index | :real | The index of the marker to find. |
Example, called from a stage’s article1_update.gml:
if ( x <= get_marker_x( 6 ) ) {
instance_destroy();
}
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Returns a setting of the current match. This includes rule overrides by custom stages. If the rule override for time is set to 0 (disabling the timer), then SET_TIMER will still return the normal time setting.
Argument | Type | Description |
---|
setting | :real | The match setting to check. |
▼ Indexes Reference
SET_STOCKS
SET_TIMER
SET_TEAMS
SET_TEAMATTACK
SET_HITBOX_VIS
SET_SEASON
SET_RUNES
SET_PRACTICE
SET_TURBO
SET_SCALING
Example, called from a stage’s init.gml:
waves_left = get_match_setting( SET_TIMER );
Categories: Functions, Programming, Workshop | Comments: 0
By Giik — February 2, 2019
Overrides the camera position. Use the functions
view_get_xview() Reference→
and
view_get_yview() Reference→
for the arguments if you don’t want to override them. The camera will be restricted to the edges of the stage in base game stages, but will be fully unlocked on workshop stages.
Argument | Type | Description |
---|
x | :real | The X coordinate to set the camera to |
y | :real | The Y coordinate to set the camera to |
Example, called from animation.gml:
if (activated_kill_effect && state_cat != SC_HITSTUN ) {
set_view_position(x, y - (char_height / 2) );
}
Categories: Functions, Programming, Workshop | Comments: 0