GameSalad

Respawn ball

wongj19wongj19 Posts: 45Member

How could I make a resplendent ball function in my game. I want it so that after I flick my ball, a new one spawns.

I was thinking something along the lines of:
Make and attribute called flick.
Rule: when flick is false, spawn actor (ball)

Not sure if this is right though

Comments

  • tatiangtatiang Posts: 11,130Member, Sous Chef, PRO, Senior Sous-Chef

    When [player flicks ball]
         Spawn actor [ball]

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • wongj19wongj19 Posts: 45Member

    @tatiang said:
    When [player flicks ball]
         Spawn actor [ball]

    Hi sorry for the inactivity but could you please go into a bit more detail when explaining how to respawn a ball. Any other help would also be appreciated.

  • tatiangtatiang Posts: 11,130Member, Sous Chef, PRO, Senior Sous-Chef
    edited June 2016

    You provided this:

    after I flick my ball, a new one spawns.

    So I gave an example of how to spawn a new actor. But I don't know how you are "flicking the ball" so I can't provide more details than that. You might want to trigger the spawn behavior when the ball reaches a certain x,y position or after a certain amount of time.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.