Problem Seven

Problem: Make a timer which counts up or down how much time is letf to play Solution:
Make an object called obj_timer (no sprite is needed) 

Create Event: set variable mytime to 10, set Alarm 0 to room_speed
Alarm Event for alarm 0: set variable mytime relative to -1, set Alarm 0 to room_speed
Step Event: if mytime is equal to 0, destroy the instance
Draw Event: at position (0,0) draw text: ‘time=’+string(mytime)

2 Comments

Filed under GameMaker

2 Responses to Problem Seven

  1. This answer doesnt work, you need to add another alarm…see my blog site for more info.

    Crosby

  2. g’day from down under

    i am just getting involved with gamemaker after a layoff for a couple of years

    where are you guys from

    you might like to look in here for some australians pretty keen on gamemaker

    http://www.groups.edna.edu.au

    search for games and jump in where you see roland’s name

    mark at numbatconspiracy dot com

    c ya

    mark

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