Users browsing this thread: 1 Guest(s)
Simplest Alarm Clock Example
#4
(05-11-2010, 01:55 PM)Vipershark Wrote: i dont have game maker 8 and i dont want to download it
can you remake this in game maker 6 or 7 please

Merry Christmas to ya all.

Code:
[ code ] no spaces
Change object(s), variable(s), name(s) as desired or othered or both.
Or keep the same to if desired, othered, both.

Information about object: object0

Sprite: sprite1
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Step Event:
for all object1: if var_alarm is equal to 15
      play sound Jessica; looping: true
D&D Drag and Drop ^

Information about object: object1

Sprite: sprite0
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Create Event:
set variable var_alarm to 0
set Alarm 0 to room_speed/2

Alarm Event for alarm 0:
set Alarm 1 to room_speed/2

Alarm Event for alarm 1:
set Alarm 0 to room_speed/2
set variable var_alarm relative to +1

All D&D ^

Coding:

Information about object: object2

Sprite: sprite0
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Other Event: Outside Room:
execute code:

/*
if ( object0.var_alarm == 15 )
{
  sound_play(Jessica);
}

var_alarm += 1;
alarm[0] = room_speed/2 //room_speed divided by half or 2 anyways.
This is simple use as an alarm clock each 3600 seconds equals one hours
one var_alarm = 1 second

/*

[ / code ] no spaces
An awesomest (best) maze game V at least in my opinion.

http://s000.tinyupload.com/?file_id=00821057748349019634




Thanked by: Alpha Six


Messages In This Thread
RE: Simplest Alarm Clock Example - by Vipershark - 05-11-2010, 01:55 PM
RE: Simplest Alarm Clock Example - by ZeldaClassicEXPERT - 05-11-2010, 05:48 PM
RE: Simplest Alarm Clock Example - by Codestar - 05-11-2010, 01:56 PM

Forum Jump: