0 Favourites

Inverted instance boolean not working

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

    <img src="http://stevemazzaro.com/instancevariable.png" border="0" />

    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!

    Steve

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread sticky
4,517 857,494
Tinimations's avatar
Tinimations
Unread sticky
1,586 437,347
matriax's avatar
matriax
Unread hot topic
378 33,276
part12studios's avatar
part12studios