Wait X amount of time? and score issues...
Hi there. I searched the forum for my particular issues and can't seem to find anything on the exact topic..Sorry for the long post.
First thing... I can't seem to find a way to say "wait 5 seconds" or any amount of time upon player's death for example.. I guess I could make one up with "EVERY 1 second add 1 to a value" and then "when this value = 5 go to frame X". but isn't there literally a wait condition somewhere ?
Also do I need a score object in order for the high score to work ? I could not get the SCORE to display in front of everything else, sorting issues somehow.. But the counter object would, so I decided to use a counter object instead, now in the player1's event list I have a condition saying upon player's death add the counter's value to player's score.. But that doesn't seem to get added. I'm wondering if it wouldn't be because as soon as the player dies is goes to the next frame ignoring the add counter value to score condition....Both happening at once...
Thanks for your help ! I'm going to take a look at the online score tutorial while waiting for some replies lolz.
Re: Wait X amount of time? and score issues...
1. Set an an alterable value to 5. Every one second subtract 1 from it.
Alterable value =0
+Only one action when event loops
> do your events
2. In the properties for the score object
uncheck display as background
Marv
Re: Wait X amount of time? and score issues...
Function Eggtimer can do this. You have to use 'event loops' as a measure of time though (I can probably add a better timing feature to the object at some point)
At 50 FPS you just tell the Function Eggtimer to call a function after 50*5 event loops.
Re: Wait X amount of time? and score issues...
Thanks for the quick replies. Great for the timer I'll use an alterable value.
For the score however i did uncheck this and as soon as the frame would start it would be visible for half a second and disapear... weird. I even placed it on anothe rlayer above and it would still disapear soon after frame has started... Thanks !
Also mini questions... Conditions in red = badness ? lolz thanks!
Sorry for the newbieness
Re: Wait X amount of time? and score issues...
Conditions in red happen once, for example "mouse clicked"
Conditions in black repeat, for example "left mouse button is down"
You could also use Restrict actions for x seconds - it's under the first object, Limit Condtions :)
Re: Wait X amount of time? and score issues...
In the Score object.
Uncheck Follow Frame in its properties.
Marv
Re: Wait X amount of time? and score issues...
Awesome, got the timer thingy to work.. Thanks again.
The score counter now does display now for some reasons follow frame was unchecked by default...
Also I got the highscore to work.. i guess i didn't need the score object since I was already using a counter, but I'll know for next time.
And for the highscore not registering, I was using a bad condition... set my condition to player's life = 0 add counter value to player score and bam it's working.
Thanks a million I am going to bed a happy man ! lol z_Z
Re: Wait X amount of time? and score issues...
Really glad you got it working and good luck on your project.
Marv
Re: Wait X amount of time? and score issues...
Wait, Don't Use Every! Use 'Restric Actions for..." instead! This works better because it will only start counting when it gets to that condition. Every will happen regardless and could be off from when the condition was reached! ;)
Re: Wait X amount of time? and score issues...