Dungeon Crawler Movement: My Way

Get help using Construct 2

Post » Sat Jan 18, 2014 5:56 am

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...
B
11
S
2
G
1
Posts: 172
Reputation: 1,486

Post » Sat Jan 18, 2014 6:31 am

If you right click on a condition you can select "Invert" which does what I think you are looking for.
B
12
S
2
G
1
Posts: 26
Reputation: 835

Post » Sat Jan 18, 2014 6:42 am

Yeah sorry, I figured it out and got everything working perfectly.
B
11
S
2
G
1
Posts: 172
Reputation: 1,486


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests