recycle actor to random location
I've watched Darren's video, even checked out his vertical shooter and shoot em up game. I'd like to recycle 5 actors that randomly appear on the screen and after they've been tapped, they return to an off screen location to be available to recycle/randomly appear at another random location on the screen. The tutorial videos all seem to drop down from the top or side, I need them to appear out of thin air at random locations (read interpolate). I've already tweaked Darren's rules and behaviors but need an alternative behavior or rule to have them appear randomly and not drop down. (I know I'm repeating myself, sorry)
Any help is greatly appreciated!
Bill
Any help is greatly appreciated!
Bill
Comments
have the actors alpha set to 0 have it wherever onscreen. make a rule when attribute alpha=0 change attribute self position x to random(0,480) and change attribute self position y to random(0,320).
have a timer by itself every 7 seconds change attirubte self color alpha to 1
then have one more rule when touch is pressed change attribute self color alpha to 0
you would put that in every actor you want it to happen to
Thoughts?
Bill