ZFGC
Resources => Coding => Topic started by: Rayo on June 01, 2011, 02:21:47 pm
-
Hello, now I have another problem.
I have two objects. [Object 1] and [Object 2].
[Object 1] is an enemy, that can't move. But the enemy can spit cores.
[Object 2] is Link. He can move.
Now the enemy should split cores to Link.
But this is every time different, therefore I need help with this code.
How do you would build this code?
-
What do you mean by "spit cores"? Is that a projectile weapon?
And what do you mean by it being everytime different?
If you want the enemy to shoot a projectile in link's direction, then use point_direction(link.x,linky.y,x,y) and set the direction of the projectile to the value of the point_direction function.
-
By cores, I assume you mean something along the lines of a deku scrub spitting deku nuts.
If you want the enemy to shoot a projectile in link's direction, then use point_direction(link.x,linky.y,x,y) and set the direction of the projectile to the value of the point_direction function.
This will be your best bet without getting into too much math, although I suggest you also learn how to do it manually just for your own education.
-
Oh, I used "cores". But I meant nuts.
And thank you for the command. Now this problem is finished.XD