by Zunar » February 14th, 2010, 7:25 pm
OOOOOOHHHHHH....
Sry. Lemme do that...
Information about object: obj_link
Sprite: spr_linkstandd
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Alarm Event for alarm 0:
set variable attack to 0
if looking is equal to 1
set the sprite to spr_linkstandu with subimage 0 and speed 1
if looking is equal to 2
set the sprite to spr_linkstandd with subimage 0 and speed 1
if looking is equal to 3
set the sprite to spr_linkstandl with subimage 0 and speed 1
if looking is equal to 4
set the sprite to spr_linkstandr with subimage 0 and speed 1
Collision Event with object obj_testwall:
start moving in directions 000010000 with speed set to 0
Collision Event with object obj_pot:
if attack is equal to 0
start moving in directions 000010000 with speed set to 0
if attack is equal to 1
for other object: destroy the instance
Other Event: Game Start:
set variable attack to 0
set variable looking to 2
Key Press Event for <Escape> Key:
end the game
Key Press Event for <Space> Key:
set the sprite to spr_linkspin with subimage 0 and speed 1
set Alarm 0 to 10
Key Press Event for <Left> Key:
COMMENT: Go left
set the sprite to spr_linkrunl with subimage 0 and speed 1
set variable looking to 3
start moving in directions 000100000 with speed set to 3
Key Press Event for <Up> Key:
COMMENT: Go up
set the sprite to spr_linkrunu with subimage 0 and speed 1
set variable looking to 1
start moving in directions 000000010 with speed set to 3
Key Press Event for <Right> Key:
COMMENT: Go right
set the sprite to spr_linkrunr with subimage 0 and speed 1
set variable looking to 4
start moving in directions 000001000 with speed set to 3
Key Press Event for <Down> Key:
COMMENT: Go down
set the sprite to spr_linkrund with subimage 0 and speed 1
set variable looking to 2
start moving in directions 010000000 with speed set to 3
Key Press Event for C-key Key:
if looking is equal to 1
COMMENT: Throw boomerang up
set the sprite to spr_linkboomu with subimage 0 and speed 1
create instance of object obj_boomerang at relative position (0,0) with speed 3 in direction 000000010
set Alarm 0 to 5
if looking is equal to 2
COMMENT: Throw boomerang down
set the sprite to spr_linkboomd with subimage 0 and speed 1
create instance of object obj_boomerang at relative position (0,0) with speed 3 in direction 010000000
set Alarm 0 to 5
if looking is equal to 3
COMMENT: Throw boomerang left
set the sprite to spr_linkbooml with subimage 0 and speed 1
create instance of object obj_boomerang at relative position (0,0) with speed 3 in direction 000100000
set Alarm 0 to 5
if looking is equal to 4
COMMENT: Throw boomerang right
set the sprite to spr_linkboomr with subimage 0 and speed 1
create instance of object obj_boomerang at relative position (0,0) with speed 3 in direction 000001000
set Alarm 0 to 5
Key Press Event for R-key Key:
restart the current room with transition effect <no effect>
Key Press Event for X-key Key:
set variable attack to 1
if looking is equal to 1
COMMENT: Swing sword up
set the sprite to spr_linkswordu with subimage 0 and speed 1
set Alarm 0 to 9
if looking is equal to 2
COMMENT: Swing sword down
set the sprite to spr_linkswordd with subimage 0 and speed 1
set Alarm 0 to 9
if looking is equal to 3
COMMENT: Swing sword left
set the sprite to spr_linkswordl with subimage 0 and speed 1
set Alarm 0 to 9
if looking is equal to 4
COMMENT: Swing sword right
set the sprite to spr_linkswordr with subimage 0 and speed 1
set Alarm 0 to 9
Key Press Event for Z-key Key:
if looking is equal to 1
set the sprite to spr_linkbowu with subimage 0 and speed 1
create instance of object obj_arrowup at relative position (0,0) with speed 3 in direction 000000010
set Alarm 0 to 5
if looking is equal to 2
set the sprite to spr_linkbowd with subimage 0 and speed 1
create instance of object obj_arrowdown at relative position (0,0) with speed 3 in direction 010000000
set Alarm 0 to 5
if looking is equal to 3
set the sprite to spr_linkbowl with subimage 0 and speed 1
create instance of object obj_arrowleft at relative position (0,0) with speed 3 in direction 000100000
set Alarm 0 to 5
if looking is equal to 4
set the sprite to spr_linkbowr with subimage 0 and speed 1
create instance of object obj_arrowright at relative position (0,0) with speed 3 in direction 000001000
set Alarm 0 to 5
Key Release Event for <Left> Key:
COMMENT: Stop moving
set the sprite to spr_linkstandl with subimage 0 and speed 1
start moving in directions 000010000 with speed set to 0
Key Release Event for <Up> Key:
COMMENT: Stop moving
set the sprite to spr_linkstandu with subimage 0 and speed 1
start moving in directions 000010000 with speed set to 0
Key Release Event for <Right> Key:
COMMENT: Stop moving
set the sprite to spr_linkstandr with subimage 0 and speed 1
start moving in directions 000010000 with speed set to 0
Key Release Event for <Down> Key:
COMMENT: Stop moving
set the sprite to spr_linkstandd with subimage 0 and speed 1
start moving in directions 000010000 with speed set to 0