How to stop a falling item, so it animates on Position and destroys self.

ozboybrianozboybrian PRO Posts: 2,102
edited November -1 in Working with GS (Mac)
Hey -

I've been making this game for a LONG time and I have bombs that fall from the sky and if the hit my actor at the bottom of the screen they "blow up" but instead the animation starts and there is just a falling explosion which looks really silly.

I just want it to appear like its damaging my actor. as it has three lives.

Comments

  • old_kipperold_kipper Member Posts: 1,420
    perhaps have three different animation sets in your target actor that are displayed in turn based on the number of hits it receives. This could be done by adding a counter which is added to every time it is hit by the bomb and when the third hit happens you finally destroy it. The bomb animation of the explosion could be in the bomb actor and play on collision with target actor (or the floor if you want it that way). As I rule I generally use a game attribute to set which animation in an actor should be played and have the actor send changes to the attribute and then reference it to play a specific animation. This avoids problems with the wrong animation playing.

    Hope that helps. Kipper.
  • JoeMeisterJoeMeister Member Posts: 602
    Create a rule for the actor: Overlap/collide
    spawn actor explosion in front of that actor.
    The animation for the explosion has to be applied to the explosion actor.

    Create a rule on the Bomb actor:
    Overlap/collide destroy this actor.
Sign In or Register to comment.