is_special_pressed

Returns whether the special button is pressed while also taking the right stick into account if it’s set to Special.

ArgumentTypeDescription
dir:realThe direction to check.

Indexes Reference

Example, called from attack_update.gml:

//This code triggers another attack if the player inputs a DSPECIAL during a certain portion of USPECIAL.
if ( attack == AT_USPECIAL && window == 4 && is_special_pressed( DIR_DOWN ) ) {
set_attack( AT_USPECIAL_2 );
}