how to spawn in the x axis
adri chan
Member Posts: 7
im trying to make an object spawn everytime it hits the ground, but everytime i try it spawns all over the screen I just want it to go randomly to left and right from the top of the screen.
Comments
Do you want the object/actor to move back to the top of the screen or do you need it to spawn a different actor?
What have you tried in the Spawn Actor behavior's X and Y position fields?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
[IMG]http://i62.tinypic.com/4r88kx.png[/IMG]
ok so i want the chimichanga to spawn everytime it hits the ground on top of the screen at random heres the pic for a better idea thank you c:
Your answer didn't really clear things up so...
And without knowing how you have your rules set up, it's impossible to help you fix them.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
ok i want the actor to spawn only at the top of the screen in the x axis only
If your scene is 320 pixels high, then you could set the Y position in the Spawn Actor behavior to 320 (or 320 minus half the height of the actor you want to spawn if you don't want the actor to get cut off) and set the X position to whatever you like (e.g. random(0,568)). Make sure the Spawn Actor behavior is set to Relative to Scene, not Relative to Actor.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
thank you and sorry im a newbie