Jump to content
  • Advertisement
Sign in to follow this  
egoplant

Turning vs. Walking

This topic is 1937 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to figure out how to implement just turning instead of walking. I'm making a grid based game and there is 8 frames in between every step that's allowed. However I want you to be able to just tap a key and turn instead of automatically taking a step. I've tried this taking an 8 frame pause if player walks a direction he is not facing. Unfortunately it just makes it clunky to walk around when you're turning while walking.

Share this post


Link to post
Share on other sites
Advertisement

It may help someone who is answering if you explain how the player is moving. For now my response is based on the usual, you have a regular keyboard, the player moves by holding down direction buttons continuously, and the time simulated flows continuously.

 

Primary Solution

Add a new key to force standing still, eg. while SHIFT is held; or push B to toggle. From experience playing I think shift, control, and space are good for holding down; a regular number or letter key is ok for toggle on/off.

 

Extra

If you have a double tap for any action this is important, performing the action should automatically allow the player to move again or that'd be incredibly annoying.

 

Make as many keys applicable do the same important things or you're underselling its functionality.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!