Interpolate: Height of Actor

DimensionGamesDimensionGames PRO Posts: 993
edited November -1 in Working with GS (Mac)
Hey all! Just wondering if it is possible to interpolate an actors height in only on direction e.g. only increasing upwards?

Cheers :)

EDIT

-----

Another question :P I want to have a scene with balls bouncing hitting only the side and bottom (not really relevant but hey ho) should I use interpolate or gravity? :/

Cheers again :)

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi PossessiveGaming; one way (if there's other ways) to interpolate an actor's height in one direction only is to change it's y position, being half of the final extra height, moved over the same time as the height interpolation. So:

    say start with an actor that's 100 high, y pos of 160 for instance

    When touch is pressed
    Interpolate sef.Size.Height to 200 (for instance)
    Duration 1

    Interpolate self.Position.Y to 210
    Duration 1

    As for your other question, there's quite a few GS game templates knocking around as to balls bouncing; perhaps you could just remove one of the walls so there's no collision...don't know if I've explained properly but dinner's ready, so got to go... (true!)

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • DimensionGamesDimensionGames PRO Posts: 993
    Haha thank you very much! I'm probably going to go do the same! Will try when I get back!

    Thanks :)
Sign In or Register to comment.