Respawn ball

wongj19wongj19 Member Posts: 45

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 Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    When [player flicks ball]
         Spawn actor [ball]

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

  • wongj19wongj19 Member Posts: 45

    @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 Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    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.