Help with interpolate

Hi guys, I need some help with the interpolate behaviour , I have a button and I want it to change de camera origin when its pressed so its changes the "pages". When i use the interpolate behaviour it never stops changing the origin

My rule is:
Interpolate atribute camera origin x to camera origin x +480. Linear. Duration 1

I have tried with the change atribute behaviour but I want the page change to have a little animation.

Comments

  • mrpacogpmrpacogp Member Posts: 400
    edited January 2013
    You want to break that interpolate rule?
    I have found help with same problem with another member of this forum, let me find the thread:

    http://forums.gamesalad.com/discussion/comment/361704/#Comment_361704
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @villewanted Your problem is interpolating the camera origin to camera origin x +480. Put a fixed x coordinate in and it should be OK.
  • zoopezoope Member Posts: 210
    You can try and use a multiplier with game.Display Size.Width, along-with a page(screen) number attribute.

    So interpolate scene.Camera.Origin.X to game.Display Size.Width *( page number -1).

    This will save you from hard coding any values.

    Keep a count with page(screen number) and it will do the trick.


    Cheers
  • villewantedvillewanted Member, PRO Posts: 66
    Finally I solved it, thank you for the help. I used zoope´s method.
Sign In or Register to comment.