button click spawns actor

hansohanso Member Posts: 23
edited November -1 in Working with GS (Mac)
Hey guys, if got some question you may simply help me: if got 1 button and 1 spawn place. problem: when i press the button, the actor should spawn not at the button i´ve pressed, he should appear at that spawn place ( another actor or invisible area called spawn place)

how can be this situation be done?

cheers!

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    In the Spawn behavior, there are two fields where you can enter the spawn location. There is an arrow next to each one specifying the X and Y coordinates that you want to place the Actor.

    You can either just type in the coordinates there, or you can create two global integer attributes, called something like 'spawnX' and 'spawnY' and use those instead.

    Does that help?
  • hansohanso Member Posts: 23
    ah! perfect, the 'cheap'-version of x & y coordinates will help me out! thanks a lot! btw, i´m messing around with your throwing/flicking demo, 1 question - at the corners of the scene, you made those Prototype which let the ball-actor not bounce when they hit it - could you tell me what those prototypes are? or better, how can i say an actor that when the ball colliding with it the ball not going to bounce?

    sorry for my bad english ;)
  • firemaplegamesfiremaplegames Member Posts: 3,211
    In my demo, those are just walls to keep the ball inside the game area.
Sign In or Register to comment.