"Move To" Random Target
Hi All! Is there a way to move an actor to a random target?
I have a actor that spawns randomly on the Y axis from the top and I want it to "Move To" a random one of six targets at the bottom of the screen. I made the random spawner to start the actor, but don't know how to make it randomly target one of the six objects at the bottom of the screen.
I have a actor that spawns randomly on the Y axis from the top and I want it to "Move To" a random one of six targets at the bottom of the screen. I made the random spawner to start the actor, but don't know how to make it randomly target one of the six objects at the bottom of the screen.
Comments
then for each target have 2 real attribute and have 2 change attibute behaviors changing the attrubutes to its self position x and y position and have that for each target, for each targets 2 attributes
so target1x target1y with chage attributes changeing targetx to selfposition x in the first target, same for the y,then the same for target2x,target2y, ect till you get to the 6th one
then in the actor u want to move have a rule when attribute random number=1 interpolate self position x to target1x and self position y to target1y
then another rule when attribute random number=2 interpolate self position x to target2x and self position y to target2y and so on havin a rule for each number till u get to 6
then whenevr you want the random move to happen, just have a chnage attribute behavior changing attribute random number to random(1,6)
cheers
Thanks!