Having an actor bounce around the screen in any direction?
Hi guys,
I have a game where i need an actor to spawn just off screen, if thats possible? I then want it to bounce around the screen in any x,y direction until the user touches it. Does anyone have any ideas how i can create this?
Thanks in advance.
I have a game where i need an actor to spawn just off screen, if thats possible? I then want it to bounce around the screen in any x,y direction until the user touches it. Does anyone have any ideas how i can create this?
Thanks in advance.
Comments
You are on the right path. but you need to trigger your move behavior
Depending on where you place your actor.
Create new rule on the bouncing actor.
Timer: After (what ever you want)
Accelerate (or move) direction.random(110,260) i placed on the left side
Create new rule
If actor touch is pressed
Change attribute self.motion.X = 0
Change attribute self.motion.Y = 0
Thanks
Cheers