Grid for X & Y coordinates - Spawning
cfbenham
Member Posts: 13
I'm having great difficulty (1) spawning an actor from another actor and (2) determining the coordinates for the positions of X & Y in the Spawn Attribute panel -
Is there a means of specifically determining the X & Y coordinates within the scene?
How can I have an actor spawned in a specific place within that scene?
ie. Actor 1 does something that then spawns Actor 2 to come on the scene and do something as a result.
Is there a means of specifically determining the X & Y coordinates within the scene?
How can I have an actor spawned in a specific place within that scene?
ie. Actor 1 does something that then spawns Actor 2 to come on the scene and do something as a result.
Comments
http://vmlweb.co.uk/page.php?15
It's free on the app store and is extremely useful.
Hope that helps. Good luck!
For specific X and Y spawning, you can choose to have the spawned actor appear based on the spawner's coordinates, or based on the Scene's coordinates.
There's 2 text fields with a little Up arrow and a little Right Arrow. If you type 100 into the Up arrow text field, and have relative to Actor in the drop down menu, the spawned Actor will appear 100 pixels above the spawner, if you choose relative to Scene, the spawned Actor will appear at the 100 pixel coordinate in the Scene, regardless of where the spawner is.
The same goes for the right Arrow as well.
Does that help/make sense?
where are the texts fields that you are referring to?
Inside the Actor that is doing the spawning, drag this behavior from the list on the left to the behavior pane on the right side.
You will then see the text fields.
However, if this is still giving you trouble, I would definitely recommend watching all the tutorial videos:
http://gamesalad.com/wiki/tutorials:video_tutorials
That should hopefully give you a more solid footing getting started with GameSalad. Progressing with your projects will be much easier once you have all the basics down.