04-29-2009, 02:47 AM
(This post was last modified: 04-29-2009, 02:48 AM by WoodySmasher.)
Hey i was asking if i can make a ball which locks on to a nearby target and still chases him wherever he go even if there are multiple targets on the field.
According to Bamboori
According to Bamboori
Quote:i have a theory that might work:If the enemies transform into balls what about their AI,They'll be just standing.
we transform all other enemys into balls for a short time, so they dont get chased
so if you want to make a ball that only chases template, make all chars a itr kind:8 at lets say y: 1000 in each frame except template. then, in the chars move where he creates the ball, he uses a bdy at y: 1000 that goes over the whole screen (use zwitdh) and all chars whith the itr kind 8 will go to the frame which was noted in the itr: the frames where they transform into a ball. the ball itsself looks just like the char and transforms back after a short time. so the only opp the ball is "seeing" is the char that has no itr kind 8 (in this case template).
problems:
-when you fight against multiple templates, the ball will chase one of them randomly (or the nearest one, i dont know)
-all enemys are teleporting to you cause of the itr kind 8
so we need a way to prevent the enemys from teleporting.