I'm making a runner....but....

sdsmith64sdsmith64 Member Posts: 221
edited November -1 in Working with GS (Mac)
ok...so i want to make a runner game BUT ...its NOT the type that has objects that spawn into the scene go across the screen and then respawn.

what i have is one long scene 320 x 4800 that has objects already in it.

How do i get the camera to move down the scene? with the player locked into a position on the screen? (the player can only jump, and has no control over the camera)

any ideas? ...thanks, Steve

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    have a unlocked actor to access scene attributes and interpolate the scene camera origin x to wherever you like

    then to lock the actor theres a couple things you can do. Have him on a nonescrollable layer, cosntrain his position to the camera origin,
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Or you could skip the unlocked instance controlling your camera and just interpolate your players x position or just set a linear velocity.x for your player and have the player control the camera. make sure you shrink the camera tracking area down so it keeps your player in the middle of the screen.
Sign In or Register to comment.