animation problem

hi , i am creating a game in which there is a bomb , i have created the animation for when the bomb explosion collides with the rock , the rock destroys and the animation starts but what happens is when the animation of bomb explosion starts it automatically starts falling down and the other rock also destroys , therefore i need to do something by which , the animation of bomb explosion stays at its place or when it falls the other rocks do not get destroyed
(note : i have used the same rock everwhere )

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I'm sorry, I can't understand what you wrote. If you can break it up into complete sentences, I think I could probably help you.

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

  • SingleSparqSingleSparq Member Posts: 1,339
    edited January 2014
    You could do a few things like have a separate actor of the Bomb animation and when the Bomb hits the rock, spawn the Explosion animation actor (the bomb can then be told to go to alpha 0 no moving or destroy or move it to an x/y location outside the scene).

    Best to put a self attribute on the bomb itself to tell it its gone off so you can make a rule to have it only activate when in ready state - that way when its triggered you can have it NOT do anything if it hits something else (like when self.Active=No Collide with rocks can happen. When self.Active = Yes (triggered when it goes off) spawn explosion - but other collisions will not affect it.
  • Manchester CityManchester City Member Posts: 2
    i understood the first option of yours but in that case the animation of the explosion does not appear
  • Manchester CityManchester City Member Posts: 2
    and if i uncheck the movable box in the physics the the other actors dont get destroyed
Sign In or Register to comment.