Jiggle X ORBZAMPLE
ORBZ
Member Posts: 1,304
Random x movement without complicated rules, etc.
This little guy is moving without any user input.
Enjoy
http://gamesalad.com/game/play/79713
This little guy is moving without any user input.
Enjoy
http://gamesalad.com/game/play/79713
Comments
I'm trying to use it in my game, every 3 seconds to spawn an actor at self.position.x and self.position.y but it's not working....
it's not spawning anything.
any idea why ?
thank you
1 says every 3 seconds change velocity speed 60 to 0 degrees and the other timer every 4 seconds do the same thing at 180 degrees. Looks random and sometimes goes more left and others goes more right
Make a sample project illustrating your problem so I can see what you're talking about. I don't understand the problem you are having.
Timer: every 2.5 seconds to spawn a parachute (having the Spaz's self.position.x) that is moving down slowly...
The Spaz is spawning the parachutes but only in the middle of the screen and I don't understand why is not spawning them at the random position.x of the Spaz.
Any idea why ?
In the parachute actor I was using Interpolate with self.position.x also that was why it was spawning it from the same spot
Sorry for the trouble Orbz, your templates are so inspiring!!!
Try this:
In your parachute actor, remove all behaviors and rules. Then just set the motion.linearVelocity.y = -30
The in the spaz actor just spawn the parachute at location 0,0 relative to actor.
That should do what you want without needing to interpolate the parachute down the screen.
Constrain: Self.Position.X to 20*cos( self.Time *100%360)+240
That's why it's not working as I want...
Of course, if you WANT to interpolate y, you can. It doesn't hurt.
s o u l a t o r b z d o t c o m