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.

Newcomers DBPro Corner / caverun demo

Author
Message
DAVIDangel
20
Years of Service
User Offline
Joined: 24th Nov 2003
Location: United Kingdom/Newcastle
Posted: 2nd Dec 2003 22:08
in the caverun demon on darkbaasic how do i load a character into it so i can control the character and make him run through the cave rather than control the camera.

'DGMC2003'
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 3rd Dec 2003 03:01


/end helpful sarcastic tone

Load Object "myobject.x",1

do
plx#=object position x(1)
ply#=get ground height(1,plx#,plz#)
plz#=object position z(1)

If upkey()=1 then move object 1,10

Position OBject 1,plx#,ply#,plz#
loop

Read the commands, its all there.

RPGamer


Dont forget to Join the Forums!
las6
22
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Finland
Posted: 3rd Dec 2003 13:14
You might want to check the Animation controls if you have animated humanoid model running down the cave.

Also, when you position your object, position the camera behind it.

`Using the example RPGamer posted.
Position Object 1,plx#,ply#,plz#

Position Camera plx#,ply#+50,plz#-200
Point Camera plx#,ply#,plz#

that should make the camera stay behind and a bit higher than the object. Point camera logically points the camera to the object's position. Oh, I just made up the +50 and -200, you might want to tweak those... cos I have no idea how big the cave is.

Keyboard not detected. Press F1 to continue.

Login to post a reply

Server time is: 2024-09-21 12:08:49
Your offset time is: 2024-09-21 12:08:49