Help get this topic noticed by sharing it on Twitter, Facebook, or email.

How to make an animal object bounce across the page

hi, I would like to have a deer jump (bounce) across the page. So far I have two animated objects (deer with straight legs, and deer with bended legs). Could you provide step by instructions on the specific behaviors that I can get it bouncing across the page? I've tried many different ways, but it seems to be the wrong method. many thanks!! :)
1 person has
this question
+1
Reply
  • Dan (Official Rep) September 21, 2015 12:02
    I would think you want one animation object with the straight leg and the bent leg, then make a behaviour for when you want it to bounce across the page like so

    IF
    THEN
    Play Instantly
    Transform X to 1024 ( if landscape ) Over T Ease Sine Out ( or In can't remember which is better for this off the top of my head )
    Transform Y to 768 ( if landscape ) Over T Ease Out Bounce
    Make sure the animation object start at a Y that is the highest point on the bounce, not right a the bottom of the screen, and where T is the amount of time in seconds you want the deer to take to jump

    Dan
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • done this with minor adjustments.. I notice that the deer gradually stops bouncing across the screen, like as in a ball... how do I make it continue to bounce at the same height across the screen and at the same pace without bouncing less and less and then stopping? thanks Dan!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Dan (Official Rep) September 22, 2015 06:13
    Ok, so we need to make two functions, one that handles the Y and one that handles the X

    IF [whatever] (forgot that the less than and greater than get removed in previous post - sorry )
    THEN
    [animation object] Play Instantly
    Transform X to 1024 Over T Ease Linear

    Then make another behaviour, must be a new one
    IF [same whatever as before] ) over BT/2 Ease Sine In
    WAIT BT/2
    and set looping on

    So T is the total time to move across the screen
    BT is the time you want per bounce
    BT/2 is half of that
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated