Timer Frustration
mesaticus
Member Posts: 51
My goal: When an enemy hits an active trigger, it stops motion/slows down for X amount of seconds.
So I followed the suggestions in this link and built a small test of what I wanted to achieve using the tips (and the downloadable file in the thread) and was able to have success! Awesome! http://forums.gamesalad.com/discussion/44707/timers-are-for-chumps-gs-optimization-tips. When enemy collides with a certain trap, I was successfully able to stop it for X amount of seconds.
So then I implemented those exact steps into my bigger project and the timer never resets itself. I have no idea what is going on!
Essentially my bigger project, upon the user starting the game, assigns a velocity X to a hero and an enemy. If the enemy hits a trap, I just want to slow it down (or stop it) for a X amount of time. I've attached a screen of my logic if it helps.
https://dl.dropboxusercontent.com/u/5820347/enemyTest.jpg
I appreciate any help or anything that I may be missing.
Thanks
So I followed the suggestions in this link and built a small test of what I wanted to achieve using the tips (and the downloadable file in the thread) and was able to have success! Awesome! http://forums.gamesalad.com/discussion/44707/timers-are-for-chumps-gs-optimization-tips. When enemy collides with a certain trap, I was successfully able to stop it for X amount of seconds.
So then I implemented those exact steps into my bigger project and the timer never resets itself. I have no idea what is going on!
Essentially my bigger project, upon the user starting the game, assigns a velocity X to a hero and an enemy. If the enemy hits a trap, I just want to slow it down (or stop it) for a X amount of time. I've attached a screen of my logic if it helps.
https://dl.dropboxusercontent.com/u/5820347/enemyTest.jpg
I appreciate any help or anything that I may be missing.
Thanks
Comments
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Oh the fun!
Anyone with more information feel free to chime in.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I still think I have a lot to learn about how GameSalad initiates everything. I guess when things are placed on the stage, everything is just firing.
In my example for instance, I had a button that says, when you are press, set the velocities of these two characters to X. But with the rules that I attached in my screen above, I guess that condition on the timer technically allowed the enemies speed to be increased. So I had to add another attribute to the enemy to actually define it as zero.
That just seems odds to me.
Slowly but surely, I'll get there.