VX ACE: Shift as event triggers

Cap_

Dude
Member
Joined
Apr 1, 2019
Messages
23
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I am making a LISA style sidescrolling game, and to do that I need a way to use the shift button in my events as a trigger. Is there any way to do that?
 

Cap_

Dude
Member
Joined
Apr 1, 2019
Messages
23
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Thanks, but i'm actually looking for a way to use Shift inside Events like the conditional branch
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
In a Conditional Branch you can put this:

Input.isPressed('shift')
 

Marrend

Bludgeon of Inspiration
Veteran
Joined
Aug 26, 2014
Messages
70
Reaction score
16
First Language
English
Primarily Uses
RMVXA
I seem to recall the Input module in Ace to only recognize specific button presses, and even then, they are, for the most part, attributed to the virtual controller.

Saying that, the "Shift" button is, by default, attributed to pressing the virtual button "A", if memory serves. So, you could do it through event-commands. Such as a Conditional Branch checking if "A" has been pressed.

*Edit: My mistake. Shift is a keypress that the Input module recognizes. I'm seeing an Input.press?(<symbol>) method in the help-file, though. So, it would probably look more like...

Ruby:
Input.press?(:SHIFT)
...so.

*Edit2: Confirmed.
 
Last edited:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
Sorry - I didn't realise you were asking about Ace when I looked that up. The command I gave you is for MV
 

Cap_

Dude
Member
Joined
Apr 1, 2019
Messages
23
Reaction score
1
First Language
English
Primarily Uses
RMVXA
I seem to recall the Input module in Ace to only recognize specific button presses, and even then, they are, for the most part, attributed to the virtual controller.

Saying that, the "Shift" button is, by default, attributed to pressing the virtual button "A", if memory serves. So, you could do it through event-commands. Such as a Conditional Branch checking if "A" has been pressed.

*Edit: My mistake. Shift is a keypress that the Input module recognizes. I'm seeing an Input.press?(<symbol>) method in the help-file, though. So, it would probably look more like...

Ruby:
Input.press?(:SHIFT)
...so.

*Edit2: Confirmed.
It worked, thanks!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,231
Members
137,607
Latest member
Maddo
Top