Game Development Community

Moving Camera

by lewissk123 · in Torque Game Builder · 06/30/2009 (8:50 pm) · 1 replies

I am trying to build a 2D game that has a world that is larger then the camera view. I want to make it so that when a person taps the screen the character will start falling towards the ground which is out of the camera view. How can I make it so that the camera follows the character towards the ground?

About the author

Recent Threads


#1
07/01/2009 (1:32 am)
mount the camera to the player when it starts to fall, and the camera will follow him wherever he goes.... you can do it like this

SceneWindow2D.mount(%player);     //%player is the player's ID

one more thing, just in case you dont want your game to show the outher limits of your levels, use the "setViewLimitOn()" command.