Bounce actors using just interpolate for motion?

StormtrixStormtrix Member Posts: 256
edited November -1 in Working with GS (Mac)
Thought i'd start a new thread on this --

If you have a landscape scene with lets say 10 actors and you want them to bounce around
do you have to have 'moveable' checked and use the change velocity behavior to give them motion?
(which is what i'm doing)

Or could you do this with interpolate somehow?

assuming already you put up 1 actor 4 times on the scene to make the walls outlining the scene
with 'moveable' unchecked.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Change self.intialY to self.position.Y

    Rule:
    when game.jump is true
    ------interpolate self.position to self.initialY + 100 (ease out)
    ------Rule: when self.positionY = self.intialY + 100
    ----------change attribute game.jump to 0
    Otherwise
    interpolate self.positionY to self.initialY (ease in)
  • StormtrixStormtrix Member Posts: 256
    Thanks for the reply scitunes! that'll come in handy in my next project :)
    actually i was thinking of balls bouncing around the screen like the sphere demo that is out there.

    http://gamesalad.com/game/1583
Sign In or Register to comment.