How to mount the camera to the player ?
by Steve Bisson · in Torque Game Builder · 04/26/2006 (7:15 pm) · 4 replies
I am making a test minigame to get some scripting experience... what i am trying to do is sort of like a top view f-zero game... i have the perfect control now, nice momentum , collision detection on the race track etc..
the only thing i cant do is mount the camera on the craft so when its racing around on the track the camera follows to explore the rest of the tilemap/racetrack.
how can i mount the camera on the craft ?
the only thing i cant do is mount the camera on the craft so when its racing around on the track the camera follows to explore the rest of the tilemap/racetrack.
how can i mount the camera on the craft ?
#2
04/27/2006 (12:08 am)
Look up the platformer tutorial on the TDN... it has a pretty good camera system that you can mount to any object and do other fancy stuff. :)
#3
04/27/2006 (12:09 am)
@Philip: Sorry, your post wasn't there while I was still going through my Firefox tabs. :)
#4
just for the record and save other people some time.
worked like a charm for me too ! once i added it to the player's function and not in "function setupT2DScene()"
thanks a whole bunch
04/27/2006 (6:14 am)
SceneWindow2D.mount(player);just for the record and save other people some time.
worked like a charm for me too ! once i added it to the player's function and not in "function setupT2DScene()"
thanks a whole bunch
Torque Owner Philip Mansfield
Default Studio Name
And it works like a charm :)