Move Camera on Actor Leaving Screen ???

SAP_AppsSAP_Apps Member Posts: 77
edited May 2013 in Working with GS (Mac)
So, I have this working... iPad Screen is 1024x768. So all i did was have an actor that size on a grid all the way throughout the game... say, 20x20. so its huge 20480x15360. and everytime the player collides with the actor, the camera swithes instantly to the next grid screen space.. think kinda zelda except its instant on screen changes.. love the effect.. however, its super time consuming..been doing it forever and only like 20% done... is there a way to do this same effect within an unlocked instance of the player? ive been thinking but not 100% sure...

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Well since you can access the camera position from an unlocked prototype you could just keep changing it based on you grid size with simple math. So if you want the camera to jump a screen width and all the widths are the same just keep adding. This isn't the right figures just an example but if you had say 1024 blocks then when the actor reaches the end of a block add the next camera position so If you start a t 0 add 1024 then for the next block add another 1024 et..
Sign In or Register to comment.