Filed under: Uncategorized
To make a timer which would count up or down how much time is left to play the game. Go to add font and made the text what ever you want then click ok. Make an object with no sprite the go to add event then go to create then go to the set value of a variable then set the variable to time then set the value to 10. Then go to the set an alarm clock then set the number of steps to 30 then set the in alarm no to Alarm 0 or what ever you want then click the relative box. Then go to add event then alarm and select alarm 0 on the list then go to the set the value of the variable then set the variable to time then select the value to -1 then click the relative box. Then go to add event then go to draw then go to the draw a text tab then set the text as ‘time = ‘ + string(time). Set the x and y points to 0.
Heres a tip make sure you make the value on the alarm event to -1 or it won't go down
No Comments Yet so far
Leave a comment
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>