How do I fix this -or- code?

Get help using Construct 2

Post » Mon Sep 05, 2016 9:01 pm

Okay, I'm trying to figure out why this wont work...
I recently changed a few Global Variables to Object Variables instead. But when I did this line of code stopped working (Image Below).
Image

Basically, When the player releases the left trigger, or they run out of stamina they stop running/stop aiming. But like I said, not working anymore.
Even though, this next code works...
Image

Which is annoying because.. aren't they the exact same code wise?

If anybody know what I'm doing wrong, any help would be a big help!
Thanks

Cocoreysa
B
5
S
2
Posts: 2
Reputation: 431

Post » Mon Sep 05, 2016 9:28 pm

Triggers are different from normal events. You can't do an OR on them. Put your actions in a function, and then use the second example to call the function in each case.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227


Return to How do I....?

Who is online

Users browsing this forum: georeb, part12studios, Yahoo [Bot] and 10 guests