Using buttons that don't have button flags in scripts?

Zech

Member
I'm trying to make a Star-Fox-esc character that requires me to use the movement keys (WASD in this case) as buttons in the script (to change how the movement works). These buttons are do not have any corresponding button flags as far as I know. Is there any way to do this, or can you only use the buttons that have button flags?
 
Last edited:
You don't need to detect the exact movement keys.

SRB2 exposes player.cmd, and cmd has the forwardmove and sidemove fields. These fields change depending on towards what direction is the player trying to move to.
They change regardless of if the player is using keyboard or controller to move.
 
You don't need to detect the exact movement keys.

SRB2 exposes player.cmd, and cmd has the forwardmove and sidemove fields. These fields change depending on towards what direction is the player trying to move to.
They change regardless of if the player is using keyboard or controller to move.
Thanks! This is exactly what I needed.
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top