+50?

FloridaGamesFloridaGames Member Posts: 328
edited November -1 in Working with GS (Mac)
when a target is hit i would like it to say +50 either where the target was or underneath the score. Any suggestions?

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Create an actor that is an image of +50 and spawn it over the existing. Actor. Have it fade out after. A sec and destroy. It
  • DizkoDizko Member Posts: 498
    Spawn an actor after the collision occurs

    or

    Have an actor off screen, and then move it to the other actor's xy position after the collision occurs.
  • FloridaGamesFloridaGames Member Posts: 328
    jonmulcahy said:
    Create an actor that is an image of +50 and spawn it over the existing. Actor. Have it fade out after. A sec and destroy. It

    how do you make an actor fade out?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    interpolate attribute self color alpha to 0
  • FloridaGamesFloridaGames Member Posts: 328
    ok thanks everybody
  • mm34125mm34125 Member Posts: 35
    By the way, it looks very nice if the "+50" slowly moves upwards while fading out. The actor would look like this:

    -Accelerate - Direction: 90, Speed: 10
    -Interpolate - self.color.alpha to 0, Duration: 1
    -Timer - After 1 Second - Destroy actor

    Hope that helps :)

    mm
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    mm34125 said:
    By the way, it looks very nice if the "+50" slowly moves upwards while fading out. The actor would look like this:

    -Accelerate - Direction: 90, Speed: 10
    -Interpolate - self.color.alpha to 0, Duration: 1
    -Timer - After 1 Second - Destroy actor

    Hope that helps :)

    mm

    You will get slightly better performance if you take out the timer and just set a rule When Alpha = 0 Destroy Actor.
    ___________________________________________________________________________________
    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!! Now only $20
    AppSolute Entertainment on Facebook
  • okimokiokimoki Member Posts: 159
    tenrdrmer: nice to know.. im using timers all over the place where i could be using the rule.. but isn't the rule also checking the rule every frame, just like timer checks the time every frame?
Sign In or Register to comment.