Turn without moving. - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: Code Support (https://www.save-point.org/forum-20.html) +--- Thread: Turn without moving. (/thread-4175.html) |
Turn without moving. - Taylor - 05-29-2012 So I made the following modification to Game_Player to allow turning when a key is tapped, as opposed to just move right off the bat. Problem is, is that there's a too-long-a-pause from turn to continue moving. Is there perhaps a better way to go about this? PHP Code:
RE: Turn without moving. - PK8 - 05-29-2012 I think it's safe to say you can probably ditch the triggers and repeats. I managed to pull a "tap to turn, press to move" movement by doing something like this (for facing down): Code: if @direction != 2 For the @wait_count, you might want to choose a number between 2 to 4. 2 would require some really light tapping to make a turn, whereas 4 is pretty loose but at the risk of there being a noticeable delay between the player turning a particular direction, and the player moving in that direction. RE: Turn without moving. - Taylor - 05-30-2012 Oh that works quite well, thanks. :o |