Inverted instance boolean not working

Get help using Construct 2

Post » Thu Feb 21, 2013 5:14 am

I've been trying to fix this for almost an hour now.



As you see in the picture, I'm trying to make the enemy stop the "ChasePlayer" function when the BadGuy instance variable "Frozen" is set to false.

The weird thing is, if I revert the X Frozen to "BadGuy is Frozen", it works (just the opposite of what I want and still affects all BadGuy instances).

Is this a bug, or am I missing something?

I've also used a global variable to test it, and the global variable worked (but stops every BadGuy instead of the one that it hit). On top of that, I've created a text box to see if the collision is changing the instance variable, and it IS changing, but the target is still chasing the player regardless.

Any help would be greatly appreciated.

Thanks!
Steveome6a17172013-02-21 05:16:36
B
22
S
3
Posts: 451
Reputation: 2,135

Post » Thu Feb 21, 2013 5:18 am

I figured it out, but am still having an issue. I had to set the BadGuy is X Frozen as a sub-event. The only issue now is it still effects every instance. Isn't this the point of instance variables? Or am I still doing it wrong?
ome6a17172013-02-21 05:22:41
B
22
S
3
Posts: 451
Reputation: 2,135


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests