playMaker

Author Topic: Change camera position  (Read 2403 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Change camera position
« on: May 22, 2014, 02:51:17 AM »
Hi!
Is it possible to move the camera one screen to the left or right.
I know you will say that I can just use a trigger and use "Set Position"
But with this solution, I need to write the new position in X or Y or Z.

For example, When I enter the trigger, I don't want the camera to move to the position I write. For example X -50. I want it to move 50 pixels to the left or right.

Hope you understand what I mean. Was a little bit hard for me to explain better. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

1982

  • Junior Playmaker
  • **
  • Posts: 71
Re: Change camera position
« Reply #1 on: May 22, 2014, 05:41:22 AM »
Use "Get Position" for the camera and save it's current position to a Vector3 variable. Then use "Vector3 Add XYZ" and add desired number to any of the axes. Now use "Set Position" action and change the position of the camera.

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Change camera position
« Reply #2 on: June 04, 2014, 08:28:05 PM »
Hi!

Thanks, but I found another way. iTween. And it works very well and it's very easy. :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no