here is the coding for link
Information about object: Link
Sprite: Link Stand Down
Solid: true
Visible: true
Depth: -100
Persistent: true
Parent: <no parent>
Mask: <same as sprite>
Create Event:
if global.right is equal to 1
set the sprite to Link Stand Right with subimage 0 and speed 1
set variable global.right to 0
if global.left is equal to 1
set the sprite to Link Stand Left with subimage 0 and speed 1
set variable global.left to 0
if global.up is equal to 1
set the sprite to Link stand up with subimage 0 and speed 1
set variable global.up to 0
if global.down is equal to 1
set the sprite to Link Stand Down with subimage 0 and speed 1
set variable global.down to 0
Alarm Event for alarm 1:
set variable global.hit to 0
Step Event:
execute code:
//north = 1
//east = 2
//south = 3
//west = 4
if x > 616 then begin
room_goto(global.roomeast);
global.wentwhere= 2;
transition_kind=1
end else if y > 448 then begin
room_goto(global.roomsouth);
global.wentwhere = 3;
transition_kind = 4
end else if x < 32 then begin
room_goto(global.roomwest);
global.wentwhere = 4;
transition_kind=2
end else if y < 32 then begin
room_goto(global.roomnorth)
global.wentwhere = 1;
transition_kind=3
end
Collision Event with object Tree:
move relative to position (-1,-1)
Collision Event with object Bush:
move relative to position (-1,-1)
Collision Event with object House_1:
move relative to position (0,0)
Collision Event with object House_1_dooropen:
move relative to position (0,0)
Other Event: Room End:
if global.wentwhere is equal to 4
move to position (616,global.ypos)
if global.wentwhere is equal to 3
move to position (global.xpos,48)
if global.wentwhere is equal to 1
move to position (global.xpos,448)
if global.wentwhere is equal to 2
move to position (32,global.ypos)
Key Press Event for <Space> Key:
start moving in directions 000010000 with speed set relative to 0
if global.swordswing is equal to 1
change the instance into object Link Hit Down, yes performing events
if global.swordswing is equal to 2
change the instance into object Link Hit Up, yes performing events
if global.swordswing is equal to 3
change the instance into object Link Hit Left, yes performing events
if global.swordswing is equal to 4
change the instance into object Link Hit Right, yes performing events
set variable global.hit to 1
set Alarm 1 to 4
Key Press Event for A-key Key:
set the horizontal speed to -5
set the sprite to Link Run Left with subimage 0 and speed 1
set variable global.swordswing to 3
Key Press Event for D-key Key:
set the sprite to Link Run Right with subimage 0 and speed 1
set the horizontal speed to 5
set variable global.swordswing to 4
Key Press Event for S-key Key:
set the sprite to Link run down with subimage 0 and speed 1
set the vertical speed to 5
set variable global.swordswing to 1
Key Press Event for W-key Key:
set the sprite to Link run up with subimage 0 and speed 1
set the vertical speed to -5
set variable global.swordswing to 2
Key Release Event for A-key Key:
set the sprite to Link Stand Left with subimage 0 and speed 5
set the horizontal speed to 0
set variable global.swordswing to 3
Key Release Event for D-key Key:
set the sprite to Link Stand Right with subimage 0 and speed 1
set the horizontal speed to 0
set variable global.swordswing to 4
Key Release Event for S-key Key:
set the sprite to Link Stand Down with subimage 0 and speed 5
set the vertical speed to 0
set variable global.swordswing to 1
Key Release Event for W-key Key:
set the sprite to Link stand up with subimage 0 and speed 5
set the vertical speed to 0
set variable global.swordswing to 2
btw the music sounds fine to me, although it is a little washed up because its a .midi format but still sounds good none the less and the music is on a loop hrmm... lemme know if anything else comes up