41
Coding / [GM7]Link in center of screen
« on: May 06, 2007, 10:54:53 pm »
I dont remember which engine but one had a few line of code that made link always in the center of the screen can anyone help me do that ?
Information about object: ObjLinkSwing
Sprite: sprLinkSwingD
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Create Event:
execute code:
image_speed=0.5;
Step Event:
execute code:
if global.facing="D"
{
sprite_index=sprLinkSwingD
global.facing="D"
}
if global.facing="U"
{
sprite_index=sprLinkSwingU
global.facing="U"
}
if global.facing="L"
{
sprite_index=sprLinkSwingL
global.facing="L"
}
if global.facing="R"
{
sprite_index=sprLinkSwingR
global.facing="R"
}
Other Event: Animation End:
execute code:
instance_destroy();
instance_create(x,y,objLink);
if distance_to_object(objLink)&& x=304 && y=176
{
Say("Testing",true,true,true);
}
theres my code.
First, enter your name as Nabooru, and play up until the Spirit Temple. When you talk to her, she will say "That is what I am called. I like you, so I'll do something really good for you if you get the gauntlets for me." When you get the gauntlets, everything will happen as usual, and she will get caught by the witches. Complete the Spirit Temple and she will give you the medallion AND a slip of paper. Take this slip and go to the horseback archery range. Give it to the Lady there and she will tell you that since you rescued Nabooru, then she will give you her horse if you can get 2000 points. Get 2000 points and she will say "You are true master, bla bla bla, I want you to take my horse, she is called Lightning. Take Lightning, she is real fast. Get all 100 Skulltulas and all 36 heart pieces and then go beat the running man. He will say you cheated and he will try and run away. Get on Lightning and run after him. Follow him into Lonlon ranch and then play the song of storms before you talk to him. He will now give you a boss key w/ a blue stone and say that all you need to do is play the somg of storms and lightning will come (like eponas songe) and the song of storms will change to lightning's song on your subscreen. Take Lightning back and trade her for epona again. Ride to lonlon ranch and show malon. She will say "I am glafd you are taking care of her. " Then she will ask if you want to try her obstacle course. Start and get off epona. Play lightnings song and she will come. Gte on and ride her, then swap back just bfore the finnish line and you will get a new record. YOU MUST DO IT IN UNDER 40 SECONDS w/ lighning this is not hard. Ride lightning to Gannon's castle and play as normal. When you get to the last door, there will be another one on the other side and you can open it w/ the blue boss key You will come out in front of gannon instead of behind and he will call the parts of the triforce. Then he will throw a real big lightning bolt at you. Dodge and calll lightning. And it cant hurt you. Run under him and try and get it to bounce back at him. When it hits him he will die and the triforce will rise up and you can get it and you can see the real ending.C+C ?
image_speed = 0; //Don't animate
if (position_meeting(mouse_x,mouse_y,self)) //If mouse is over
image_index = 1 //Subimage is one
else //If not
image_index = 0 //Subimage is 0