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.
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
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
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.
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