a ease function ?

lebiscuitlebiscuit Member, PRO Posts: 220
i'm trying to get a smooth camera ease, i'm use to as3 and in as3 i use "new MathVector(0.05, 0.05)"

is it possible to do the same in gamesalad, constrain an attribute with a ease ?

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Can you post an example of what you're looking for? You could just use interpolate?

    Ease in, or ease out? Try different settings.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    edited June 2013
    In GameSalad, easing is done with the interpolate behavior. You will need to unlock an actor instance to get to the scene attributes. Then interpolate 'scene.Camera.Origin.X' and 'scene.Camera.Origin.Y' to the x,y coordinates you want.

    Edit: Beat by @Braydon_SFX again!
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Too slow, Mr. @RThurman. *Straightens Bowlboy Mask* \:D/
  • lebiscuitlebiscuit Member, PRO Posts: 220
    i'v found something, i'll post the solution
  • lebiscuitlebiscuit Member, PRO Posts: 220
    ok so my camera is an actor set to movable,

    constrain attribut :
    self.motion.linear Velocity.Y to: 1.2*( game.heroY - self.Position.Y )

    smooth like a butter
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Great thinking!
  • LumpAppsLumpApps Member Posts: 2,881
    Me like! :)
Sign In or Register to comment.