0 Favourites

Dungeon Crawler Movement: My Way

  • I saw some people post similar threads already, but I want to see if I can get my way to work.

    In another thread I saw someone used lots of variables to keep track of what was and wasn't pressed. My problem is that my movement is all set up, but when I press two directions at once, the animations won't run... The game seems confused, and I can't blame it.

    What I want to know is this: Is there a simple "NOT" command I'm missing?

    Right now I have an animation playing if I hit left, and animation playing if I hit up, and then another animation is supposed to play if I hit up and left at the same time.

    Is there a way I can tweak a condition to be something like:

    Right Arrow is Pressed

    Up Arrow is NOT Pressed

    Down arrow is NOT Pressed

    Or do I have to make a bajillion variables to work around this? If there is no NOT command it seems like a very inefficient way to code... Perhaps this could be added? AND, OR, NOT conditions would be awesome...

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • If you right click on a condition you can select "Invert" which does what I think you are looking for.

  • Yeah sorry, I figured it out and got everything working perfectly.

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