Dungeon Crawler Movement

0 favourites
  • 3 posts
From the Asset Store
professionally animated character with Brashmonkey Spriter !
  • Hi all,

    I was messing around with Dabbijo's simple rpg movement and I'm having trouble of stopping the character's movement when you hit down either of the W, A, S, D keys. The character runs until you release the key and I'm having trouble of stopping that movement. Instead, what I want to happen is the character to move once in either direction, stops and waits for another key button press.

    Here is the screen:

    Here is the .capx:

    dl.dropbox.com/u/42350288/rpgtest2.capx

    Thanks for any replies!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • link dead :(

  • If I understand it correct, you hold down for instant W and you want the character to move 32 pixel forward?

    If that's the case you should use "On key pressed" If you want to make it so the player can hold down the button and then it moves. You should add a small delay on how many times it can happen every cycle. You can do that by adding a every X second or every X ticks.

    And you don't really need a "on released", you can just add an else to the keys.

    So:

    If W is down

       Set character move forward = true

    Else

       Set character move forward = false

    There shouldn't be any need for the part where you move at 0 and 0 angle.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)