Hey all,
How do I get it so that the faster I push space bar, the faster my hero swings his sword?
Printable View
Hey all,
How do I get it so that the faster I push space bar, the faster my hero swings his sword?
I would have a speed counter and everytime you press space it adds to this counter. Every X amount of time you don't press space, then it subtracts from this counter. That way the faster you press the space key, the faster the character will swing.
That would mean that he could press the space bar at a steady rate but it would get faster.
Don't use the wait x amount of time not pressing space, just do something like every 00-00-05 subtract 1.
Cool Thanks guys.