Slide camera view on button press

Hello,

I am trying to figure out how to slide the camera view when I click a button.

I have a level selection menu which is 5680x320. When I press the left button, I'd like it to slide the camera to the left 568 pixels. Same with the right button.

I believe I figured out how to make sure it does not cross 0 or 5680, but I can't figure out how to make the camera move. Any suggestions?

Comments

  • TouchiMediaTouchiMedia Member Posts: 154
    I think you'll have to edit the button's instance type that's in the scene.. This allows you to interprolate the scene camera origin x to position (xxx whatever) over 1 second..

    That's the only way you can get access to the scene camera attribute as far as I am aware
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    I think you'll have to edit the button's instance type that's in the scene.. This allows you to interprolate the scene camera origin x to position (xxx whatever) over 1 second..

    That's the only way you can get access to the scene camera attribute as far as I am aware
    Exactly. This is currently the only way to do it.
  • SocksSocks London, UK.Member Posts: 12,822
  • Do you guys realize how much you rock? Thank you!!!
Sign In or Register to comment.