zork269 4 Posted January 31, 2016 So the premise of my current project is this: the player begins with a full "mood" bar, but as time goes on and the game is played, the mood bar steadily decreases. Once it hits the bottom, the sprite has become so depressed that he commits suicide in a gruesome and creative fashion. Game over. My intentions were to set a variable, called "mood," at 450 (which is the Y-coordinate of the icon that marks the player's level on the meter) and then set a conditional branch, so that every 1 second (or some interval of time) the variable decreases by 4.5 and makes the icon fall steadily lower on the meter. But it isn't working. The conditional branch will end as soon as the second is over, but if I set it to loop, the game crashes immediately upon starting. How do I accomplish this? Thanks for your help. Share this post Link to post Share on other sites
Rikifive 3,411 Posted February 1, 2016 1) Set this event to parallel process if you have set it to something else 2) Set two things in that event: - Wait: ## frame(s) - decrease variable 3) You can put conditionals and stuff if needed~ 4) profit Share this post Link to post Share on other sites
+ TBWCS 953 Posted February 1, 2016 You have to practice and use the theory of frames. When you want to decrease a variable over time, you have to get a wait counter, that when it reaches a certain range it decreases the variable. Through eventing this is possible. Just make sure that while you do the waiting it does not affect your character's overall movement. Share this post Link to post Share on other sites
zork269 4 Posted February 4, 2016 Great! I set the counter as a common event, running as a parallel process, and it works like a charm! Thanks everyone. Share this post Link to post Share on other sites
Rikifive 3,411 Posted February 5, 2016 Glad you got it solved! (= This thread is closed, due to being solved. If for some reason you would like to re-open this thread, just send me a PM. (= Share this post Link to post Share on other sites