Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / 3rd Person View Function

Author
Message
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 7th Jul 2005 11:42 Edited at: 7th Jul 2005 11:44
I made a code snippet for views a while back, then when I went on IRC someone asked for this so I decided to make it into a function (Dead...something). So, here it is:



Just put that code below the loop, then in the beginning of the loop call the function. And before the loop define Limb# as a global, by simply typing:



Ok heres how you define the function:

Object# is the object you want the camera to follow
X# is the X# Offset for the limb
Y# is the Y# Offset for the limb
Z# is the Z# Offset for the limb

Here's a quick way of using the function:



I couldnt reconnect to IRC to tell Dead that I finished it so...Dead, if you see this then hope it helps. Sorry devhat got screwy with me again


Current Projects: SHADE - Game Maker | Mecho - TGC Puzzle Entry | Halo Physics Engine | COLD - Polygonal Collision Detection
Flame15
19
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Norway
Posted: 22nd Oct 2005 21:38
when i try to use this code the object dissapares after a short time. Anyone knows what the problem is??

The flame are burning

Login to post a reply

Server time is: 2024-11-23 10:50:50
Your offset time is: 2024-11-23 10:50:50