animations aren't working and how do you do this?

idoistuffidoistuff Member Posts: 197
edited November -1 in Working with GS (Mac)
so first off when I put in my actor "when collide with death play animation (put in all the pics) wait 2 seconds (timer) and then restart scene."

it doesnt play the animation..

also second question, how do people do it so when your player hits a TNT block your player will explode into chunks that fly in different directions according to the TNT.

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    idoistuff said:
    so first off when I put in my actor "when collide with death play animation (put in all the pics) wait 2 seconds (timer) and then restart scene."

    it doesnt play the animation..
    is your timer in the Rule Actor receives event |overlaps or collides with| ???
    or is it just on the actor... ???
    try a longer timer After 5 seconds... to see if that allows animation to show
    test the animation without being in a rule...to make sure it works right.

    also second question, how do people do it so when your player hits a TNT block your player will explode into chunks that fly in different directions according to the TNT.

    think it is again an animation ...

    MH
  • idoistuffidoistuff Member Posts: 197
    MotherHoose said:
    is your timer in the Rule Actor receives event |overlaps or collides with| ???
    or is it just on the actor... ???
    try a longer timer After 5 seconds... to see if that allows animation to show
    test the animation without being in a rule...to make sure it works right.

    think it is again an animation ...

    MH

    how do you make an animation that makes your player blow into 5 different pieces and bounces off objects like real physics? some guy did that in Rodent Rage
  • MotherHooseMotherHoose Member Posts: 2,456
    one... set up an a large enough... transparent background image... in your Image making applications

    take your actor image... and copy/cut in 5 sections... them place/paste each sections in your new image... at positions and rotations that look realistic... do the same for the tnt...(best put each section in a new layer)

    and you have got to do several new images to show pieces flying further away from tnt...
    take your first image...when things are close to the tnt... duplicate it and move things slightly further away and save that one... and keep working to you have the series to your liking

    use the images in an animation...
    shouldn't take longer than 1/2 hour...as you are not creating anything just chopping and pasting...

    MH
  • idoistuffidoistuff Member Posts: 197
    okay well this is what I have so far, and it wont play the stupid animation :(

    http://dl.dropbox.com/u/11172522/Screen shot 2011-03-04 at 6.42.58 PM.png
  • QuinnZoneStudiosQuinnZoneStudios Member Posts: 452
    Are you switching animation states?
    If not, download and study this demo and you should be fine:

    http://gamesalad.com/game/1987
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    hey idostuff I just replied to your email Sorry it took so long its should give you an idea of why this one isnt working to. But i'll go ahead.

    Make a boolean attribute in your actor and set your overlap or collide rule to set the attribute true.

    When overlap or collide
    --Change attribute self.hit to true

    then make a rule when self.hit is true
    --run animation

    Then another rule when attribute self.image = (exact image name including .png of what ever the last image in the animation is)
    --Destroy actor
  • idoistuffidoistuff Member Posts: 197
    it worked thanks! also quick question before I spend hours doing it..

    if I made an animation of the TNT blowing up and make the animation 200x200 and the tnt block is only 52x52 would it resize the tnt animation to 52x52?
  • AsymptoteellAsymptoteell Member Posts: 1,362
    For the TNT, there's a template for blowing apart objects. You don't need to make a bunch of animations.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    idoistuff said:
    it worked thanks! also quick question before I spend hours doing it..

    if I made an animation of the TNT blowing up and make the animation 200x200 and the tnt block is only 52x52 would it resize the tnt animation to 52x52?

    Yes, if you put the animation behavior in the tnt actor thats 52x 52 the 200x200 animations will shrink. You can either put all the tnt images on a canvas thats 200x200 and leave the size of the actual block 52x52, or have a seperate actor for the animation and spawn it when you destroy the tnt and want it to explode

    cheers
  • idoistuffidoistuff Member Posts: 197
    okay it worked great thanks! im watching a video on gamesaladcookbook about blast effect :D
  • idoistuffidoistuff Member Posts: 197
    okay I have been working on this for 28 minutes and cant figure out why it isnt working!

    http://dl.dropbox.com/u/11172522/Screen shot 2011-03-04 at 9.08.11 PM.png

    it will destroy actor, but WONT reset the scene..
  • AsymptoteellAsymptoteell Member Posts: 1,362
    If it destroys, it can't reset the scene. Make it set its alpha to 0 instead of actually destroying it.
Sign In or Register to comment.