Hi!
I'm having a big problem here, mabey someone can help me:
I want to add a number to an instance variable but only once, so here's what I mean.
For example: Player is overlapping "Tree" -> subtract 50 from the Player's Instance Variable called "InView"
and when he is not under a "Tree" he will lose the Bonus of -50 "InView"
So what I'm trying to do is, giving the Player a Bonus of -50 on "InView" which will make him more difficult to find by the enemies. So "InView" stays for the visibility of the player.
Now my Problem is, that as long as the Player is overlapping the "Tree" construct2 is subtracting -50 constantly in place of just once every time he walks over.
I tried it with "Trigger once" but that only works for one time, so when the Player moves out of the "Tree" and after a while walks back in, he won't get -50 from "InView" again.
And I tried something with the Behavior Timer but i can't figure out how it really works.
Can somebody help me with this?
Thanks