I'm trying to make a "Running" minigame in which :
- When the character still has the stamina to run, the speed would be set to 5.
- Every step the character makes would decrease the stamina by 1
- After the stamina reaches 0, a text "Out of stamina" will be shown and the character's speed would decrease to 4. Then, every step the character makes would increase the stamina by 1.
System implemented :
- In every tile, I put an event such as this :
[IMG]http://puu.sh/gvCrQ/f2cfb196ae.png[/IMG]
- In the common events, I put this event :
[IMG]http://puu.sh/gvCzD/97e834f764.png[/IMG]
....in where Filler Up is a switch that activates when the variable stamina reaches 0.
....in where NPC Run is a switch that activates when the running minigame starts.
Problems :
However, when I test the minigame, the event that should play when the stamina reaches 0 didn't play, and the stamina kept on decreasing instead. Resulting in this : [IMG]http://puu.sh/gvCGF/9cec827050.jpg[/IMG]
Is there anyone who can help me here?
- When the character still has the stamina to run, the speed would be set to 5.
- Every step the character makes would decrease the stamina by 1
- After the stamina reaches 0, a text "Out of stamina" will be shown and the character's speed would decrease to 4. Then, every step the character makes would increase the stamina by 1.
System implemented :
- In every tile, I put an event such as this :
[IMG]http://puu.sh/gvCrQ/f2cfb196ae.png[/IMG]
- In the common events, I put this event :
[IMG]http://puu.sh/gvCzD/97e834f764.png[/IMG]
....in where Filler Up is a switch that activates when the variable stamina reaches 0.
....in where NPC Run is a switch that activates when the running minigame starts.
Problems :
However, when I test the minigame, the event that should play when the stamina reaches 0 didn't play, and the stamina kept on decreasing instead. Resulting in this : [IMG]http://puu.sh/gvCGF/9cec827050.jpg[/IMG]
Is there anyone who can help me here?