playMaker

Author Topic: How to set a effect when get coins[SOLVED]  (Read 1718 times)

xhidnoda

  • Full Member
  • ***
  • Posts: 231
    • View Profile
How to set a effect when get coins[SOLVED]
« on: May 02, 2013, 01:58:44 PM »
Hi!
I development a game where the player eat or get the coins, and when do that try to set a effect like any game.
See the picture? the stars-effect when eat coins? this is exacly what i need.
Any help? THASK!!!
« Last Edit: May 08, 2013, 11:39:19 PM by jeanfabre »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: How to set a effect when get coins
« Reply #1 on: May 02, 2013, 01:59:39 PM »
Just make a sprite prefab of the stars effect and create it on the player when he eats a coin.

xhidnoda

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: How to set a effect when get coins
« Reply #2 on: May 02, 2013, 02:44:06 PM »
OK.
1. So the player contain a prefab whit stars-efecct, not visible for default
2. When the player hit coin, the stars-effect apper (visible=true)
3. When the player not hit coin, set the prefab stars-effect not visible.

like that?

xhidnoda

  • Full Member
  • ***
  • Posts: 231
    • View Profile
Re: How to set a effect when get coins
« Reply #3 on: May 05, 2013, 01:12:50 PM »
and...YES! is works!!! now a have coins whit effect when the player eats and stars as well. :)
THANKS!