1
Entertainment / Re: Majora's Mask 3DS
« on: November 09, 2014, 01:40:56 am »
My patience will finally be put to the test as I won't have a L-to-levitate code to use on this one.
{Link} is gone. The Dark Lord [Ganon} will rise again. ]Hyrule} will suffer as [we} suffered!
[Marin]
1=Link! You're awake! I found you passed out on the beach, and...oh, I couldn't bear to watch you be hurt again! ;
Line1=0 ;
2=What? How is it possible that I exist? I've always existed, silly! But you know, my memory has been fuzzy lately. ;
[Tarin]
1={Link}, m'boy! This peace is what all true warriors strive for! I feel like I've seen that somewhere before. ;
[Owl]
1=Hoot! {Link}, the hero. You must be surprised to be on the shores of ]Koholint} again. Allow me to explain. ;
There is a way to "cheat":
Have the Zola move toward Link at a speed of 0. This will set a directional angle that is standard in Game Maker - direction.
Code - move_towards_point(Link.x, Link.y, 0);
or you can drag and drop the Move Towards action and use Link.x Link.y and speed 0. Of course, the most optimum way if you do not have Link centered(origin no centered) you should do some math to get the center of Link.
Then, you have a check for the angle:
if (direction < 45 || direction >= 315)
{
facing = right; //or whatever your code is to make the zola face right
}
if (direction >= 45 && direction < 135)
{
facing = up;
}
if (direction >= 135 && direction < 225)
{
facing = left;
}
if (direction >= 225 && direction < 315)
{
facing = down;
}
Now you can put those checks in either the STEP Event or if you only want it to do this when it appears, put it in the creation code after you get the direction variable that way it gets the direction once.
or you could have it keep looking (moving) at Link until it finally shoots.
It's upto you.
I hope this makes sense. I just spent almost 10 hours changing automotive batteries, tires, and doing oil changes so my brain my be fried a bit.