Camara like tiny wings

mrglocklingmrglockling Member Posts: 258
edited November -1 in Working with GS (Mac)
Ok so im not sure what to do this is also in cookbook but i figure if i put it everywhere i will get an answer faster.
How do I make my camara zoom in and out based on how high my character is in the air just like tiny wings as well as still following my character?
A response from someone whos knows soon would be greatly appreciated.
And thank you Tshirtbooth for answering my last one ;)
-Mrglockling

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I would assume that you would not want the camera to ever go below 480x320 so here's what I would do:

    Create a game attribute (integer) game.BirdY
    Constrain this to the main character's y position

    create an immovable invisible actor called cameraController. Drag this into the scene, double click on it and unlock it.

    Then constrain current.scene.camera.height to 320+game.BirdY
    constrain current.scene.camera.width to (camera height * 1.5)

    You could also try 320+(game.BirdY*2) to have more dramatic zoom out. Change the 2 to tweak it.
  • mrglocklingmrglockling Member Posts: 258
    Hey thanks allot guys im like 15 and a noob i guess so your help is amazing to me
  • EastboundEastbound Member, BASIC Posts: 1,074
    Just know that if you have a HUD (or any elements you don't want to zoom) that they will be zooming in and out with the camera, as well. I don't think there's a way around that, though.
  • JadarStudiosJadarStudios Member Posts: 264
    Wait, there's a way to zoom?
  • MegapixelIdeasMegapixelIdeas Member, PRO Posts: 476
    Can you do pinch zooming in Gamesalad?
Sign In or Register to comment.