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 / new camera mode

Author
Message
Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 19th Apr 2003 22:34
I need a snippet that makes a camera/movement like zelda 64:

when you hit the keys your character automaticly turns that way and runs that way. The camera follows the character but dosn't always turn the way he's facing. when you hit a key the camera wrapps around to the character (left or right, whatever is shorter)

this is a tought code but would be much appericated
As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
Megaman Zero
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: United States
Posted: 20th Apr 2003 02:43
I would like to know how to do this also, a game idea I have, requires multiple camera's, so I would like to see a code of this, if possible.

Thx,

Danmatsuma
21
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 20th Apr 2003 06:35 Edited at: 20th Apr 2003 06:37
'Help->Examples->Basic 3D->25.Sliding collision'

The example in help on sliding collision has the set camera to follow command. Try it as is.
Now:
Mess about with the angle# variable, start by
rem'ing out the command that says

angle#=object angle y(11)

using
` or rem.

Try it again. The camera doesn't rotate with the cylinder.

Now you can see that by setting the variables for angle# and camheight# and camdist# using say, keys F1 to F4 you can create this camera system you want

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 20th Apr 2003 20:27
thanks for the help, I'll get working on it

Shadow Guyver: I'll post a snippet in a few days for evryone

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4

Login to post a reply

Server time is: 2024-09-20 06:35:18
Your offset time is: 2024-09-20 06:35:18