Animation Question

gamedivisiongamedivision Member Posts: 807
edited November -1 in Working with GS (Mac)
i have an ice ground and i would like to make a fish come crashing through the ice reach a certain hight then fall back down into the ice and the crack disappears,but my character will collide with the fish.
im just after the theory side of how to do it as in pure animation or make the crash then add the fish separately
thanks

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    I would make two actors. An animated "cracking of ice" and a fish.

    I'd have the animated "cracking of ice" actor spawn randomly in or near where your ice is, in it's behaviors have a spawn actor; fish and the animation behavior as well.

    That should make it look like the ice breaks and the fish will jump out of it.
  • gamedivisiongamedivision Member Posts: 807
    thanks for the response drglickert
  • gamedivisiongamedivision Member Posts: 807
    once an actor reaches a certain height how would i then change image and fall back down
  • DrGlickertDrGlickert Member Posts: 1,135
    You can put a rule in that fishies that;

    When actor's self.position.Y > random(200,400);
    Move @ 270 degrees (add your speed here) relative to the scene.

    That will give the fishies a random jumping height before they start to fall back down.

    Alternatively, you can have a REAL self.attribute, lets call it JumpHeight. Start the actor's behaviors with change attribute self.JumpHeight to Random(200,400), then in the RULE;
    When Actor's self.position.Y = self.JumpHeight;
    Move @ 270 degrees (insert speed here) relative to the scene

    Hope that helps!

    Good luck!

    EDIT: Or if you know how high you want the fishies to jump, then put that value in the first option I gave you. Good luck!
  • gamedivisiongamedivision Member Posts: 807
    thanks mate i used interpolate then i used the ease in and ease out and managed to get that point where the fish slows down change images then speeds up when it returns to the water
  • DrGlickertDrGlickert Member Posts: 1,135
    Perfect solution! Nice!
Sign In or Register to comment.