Grid for X & Y coordinates - Spawning

cfbenhamcfbenham Member Posts: 13
edited November -1 in Working with GS (Mac)
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.

Comments

  • QuinnZoneStudiosQuinnZoneStudios Member Posts: 452
    This is an awesome app by vmlweb built on GameSalad called iDevices:
    http://vmlweb.co.uk/page.php?15
    It's free on the app store and is extremely useful.
    Hope that helps. Good luck!
  • cfbenhamcfbenham Member Posts: 13
    Yes, yes it most certainly does help. I just saw the video for it. With my coordinates issue, it looks perfect. Thank you. I'll be downloading this for sure. I don't suppose you have any idea how I can spawn an actor as a reaction to my first actor? I'm trying to look at the template for the cannonball, but not proving successful.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    For the first part:

    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?
  • cfbenhamcfbenham Member Posts: 13
    Hi firemaplegames, I'll play around with it and see what happens. I think I understand. Thank you :)
  • cfbenhamcfbenham Member Posts: 13
    firemaplegames,

    where are the texts fields that you are referring to?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    In the Spawn Actor behavior.

    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.
  • cfbenhamcfbenham Member Posts: 13
    Thanks again. I'll do it.
Sign In or Register to comment.