Topic Information

How would I go about making command inputs? by sprands in Help With Scripts

Posts: 6

1: sprands wrote at 5:52:25 AM 15/5/20204014716
two types i'm talking about specifically:

forward + forward (double tap to do the input)

down + forward + punch (quarter-circle forward + punch / fireball motion)
2: Oumuamua wrote at 1:06:13 PM 15/5/20204015643
You should to share the project.
What are those commands? buttons on screen?
3: sprands wrote at 9:36:59 PM 15/5/20204018255

Oumuamua wrote:

You should to share the project.
What are those commands? buttons on screen?
no, they aren't buttons on screen. i'm talking about keyboard inputs.
4: JC20092009 wrote at 11:05:47 PM 15/5/20204018617
Here’s how to detect double-taps.

when this sprite clicked
set [SpriteClicked v] to [true]
broadcast [SecondTap v]

when I receive [SecondTap v]
broadcast [Command v]
5: JC20092009 wrote at 11:06:57 PM 15/5/20204018621
Use the “if touching mouse-pointer” to detect the second tap. Hope this helps!
6: Oumuamua wrote at 12:31:29 AM 16/5/20204018846
Double tap involves a time limit between keystrokes.
Since you have different key combinations i´d say that reset timer to measure time could be problematic.
I recommed you to create some variable e.g. for foward+foward one var, lets say “first foward” at first keystoke set to timer so you can check, when you press the key again, if timer minus “first foward” is less than 0.1 validates the double tap.
I hope you understand what i mean.