Increment Camera Origin On Touch

ZackGSZackGS Member Posts: 313
edited November -1 in Working with GS (Mac)
Hey guys.

I am trying to move the camera's origin on a button press.

This in theory is so simple to do but just wont work.

Basically i have a button. With the following rules :

on pressed :

increase origin = true

if origin == true

change attribute > camera.origin.x > camera.origin.x + 1

Any ideas why it wont work?

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    just create an invisible actor. Put a control camera behavior in it. Then put movement rules in this actor (move, move to, interpolate)
  • ZackGSZackGS Member Posts: 313
    Problem is i already have an actor that controls the camera as it scrolls across the screen.

    its like a canon game so the scroll behavior is just used to see all the targets in the scene which is 960px wide
  • ZackGSZackGS Member Posts: 313
    bump
Sign In or Register to comment.