Information about object: objController
Sprite: sprController
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Other Event: Game Start:
set the number of lives to 3
Draw Event:
execute code:
for (i=1; i<=lives; i+=1) {
draw_sprite(sprHeart,-1,450+(i*32),5);
}
Information about object: objAddLifeSprite: sprAddLife
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask: No Physics ObjectMouse Event for Left Button:If lives are smaller than 4set the number of lives relative to 1execute code: //So it doesnt add several for holding the button too long io_clear();elseplay sound sound0; looping: falseexecute code: //So it doesnt take several for holding the button too long io_clear();Information about object: objTakeLifeSprite: sprTakeLife
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent:
Children:
Mask: No Physics ObjectMouse Event for Left Button:If lives are larger than 0set the number of lives relative to -1execute code: //So it doesnt take several for holding the button too long io_clear();elseplay sound sound0; looping: falseexecute code: //So it doesnt take several for holding the button too long io_clear();
No comments:
Post a Comment