
Originally Posted by
danjo
you can use "repeat while pressed" & also "press key" alongside each other. * the press key is used for counting your double taps if you do it, otherwise it will move normally.
if you want to continue using your movement as you are with repeat while left is held etc, you can do that. you will probably need to add a flag to it like ( flag [ double tap ] is OFF ) and you move left.
now you can put right under it,
press left - add counter (double tap left), and another double tap right counter for right.
you can void these if you press any other key - eg; press any key + [negate] repeat pressing left and left double tap counter >0 set it back to zero - and so on.
if double tap count is 2, then set your double tap flag ON so you normal repeat while pressing left is not active and do your double tap move.
you need flags to turn on and off your normal move vs double tap move. it sounds a little messy, but its simple once you figure it.
------------------------------------------------------------------------------------------------------------------------------------------------
eg: for moving left.... this is another simple way of doing it. it moves 1 pixel, and double tap moves it 16 * i didnt add in the use flag for this, but if you are doing something completely different for double tap - like an attack or jump etc, you may need the flag to stop its normal move.