Problem 7
more gamemaker fun fun fun…
Problem: Make a timer which counts up or down how much time is left to play
Solution: add object (sprite isnt needed) > add event > create > set the valuable of a variable > variable – mytime and value 10
> drag set an alarm clock into the actions section > number of steps – room_speed and in alarm no. put alarm 0
add event > alarm 0 > set the valuable of a variable > variable – mytime and value -1 > tick the relative box
add event > draw > draw a text – text: ‘time=’+string(mytime) > leave the x and the y o
put the object into the room to see if it works
i didnt get help from anyone as i actually used my brain.
Bill Kerr said,
March 26, 2006 at 3:43 pm
great that you could do it on your own
this timer will count down past zero into the minuses – how could we prevent that?