Hello,
I got an object with 7 alterable values. Each value named by it's number (Alterable Value is named "A1", Value 2 is named "A2" etc).
Each of these Alterable Values are used for the movement of the player. Now I'm trying to make something happen when the Player stops moving so I did:
Code:
A1 of ("Active")= 0
+A2 of ("Active") = 0
+A3 of ("Active") = 0
+A4 of ("Active") = 0
+A5 of ("Active") = 0
+A6 of ("Active") = 0
+A7 of ("Active") = 0
And I did the action I wanted it to (for example purposes, I made it play a sound.)
But the thing was the sound keeps playing because while the player is stopped all these values will always equal to 0. So the sound kept playing unless I moved the character.
This is the problem: At the end of all this I add a "Only one action when event loops" so the sound would only play once every time the player stopped moving.
Code:
A1 of ("Active")= 0
+A2 of ("Active") = 0
+A3 of ("Active") = 0
+A4 of ("Active") = 0
+A5 of ("Active") = 0
+A6 of ("Active") = 0
+A7 of ("Active") = 0
+ Only One Action When Event Loops
Nor for some reason the sound plays when I stop the first time, but when I walk around and stop it never plays. The sound only plays once in the entire application. It's as if I added the "Run this event Once" but I didn't.
What's wrong?
Thanks! 