Tap for sparkles..

smurftedsmurfted Member, PRO Posts: 570

Another noob question..

Whats the best way to get a little actor to appear & animate when the screen is tapped, then disappear?

Comments

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

    Have a "When Mouse is Down" rule that spawns the "animation" actor.

    Then, in the animation actor, have an Animate behavior with however many frames/images. Have a rule that says When attribute self.Image is [name of last frame image filename] --> Destroy.

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

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

    Have a "When Mouse is Down" rule that spawns the "animation" actor.

    Then, in the animation actor, have an Animate behavior with however many frames/images. Have a rule that says When attribute self.Image is [name of last frame image filename] --> Destroy.

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

Sign In or Register to comment.