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.

DarkBASIC Professional Discussion / Can Someone help me make a mario kart camera?

Author
Message
Graysire
12
Years of Service
User Offline
Joined: 18th Oct 2013
Location:
Posted: 28th Feb 2014 19:03
Can someone help me with the code for my game I want to make a camera similar to the one in MarioKart but nothing works! I have tried set camera to follow but because the object is on a slope it doesn't work. Here is the code
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 28th Feb 2014 20:53
Here's a function you might find useful



Just put the function right at the end of the code, and use it like a command, just after the set camera to follow statement! Play around with the 'speed' value to see what works best for you. Values closer to zero mean the camera points at an object faster, bigger values move it slower
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 28th Feb 2014 21:43 Edited at: 28th Feb 2014 21:44
Hi there. I tried to run your program with some images but it was all a mesh....you made a gosub to a no existing label "MainSection2" but this is not the case.

I'm not sure if what you are looking for, is a 3d person camera view.If this is your case, you can use this easy method.



I'm not a grumpy grandpa
tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 28th Feb 2014 22:18
What was wrong with the other thread?

Cwatson
tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 2nd Mar 2014 02:05 Edited at: 10th Mar 2014 00:24
The only way I knew was possible.

sc_setupobject box,1,2

Edit this wasn't supposed to bere on this thread.

Cwatson

Login to post a reply

Server time is: 2026-07-06 01:52:03
Your offset time is: 2026-07-06 01:52:03