Problem 7

March 22, 2006 at 2:45 pm (Gamemaker)

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.

screen shot 7.jpg

1 Comment

  1. Bill Kerr said,

    great that you could do it on your own

    this timer will count down past zero into the minuses – how could we prevent that?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.