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 Discussion / Moon help

Author
Message
arbiter chewbacca hybrid
16
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 1st Mar 2009 16:09 Edited at: 1st Mar 2009 17:07
How do I make a Moon
This is my code to make the moon the rest is in who wants a free FPS engine this is really a moon for that engine
but the moon part dose not work everything compiles but the moon is not there when I run it
I also need help on sprinting I want it so that whenever the player presses space bar while moving they goes 1.75 times as fast as they previously were

Edit tried it didn't work anymore suggestions

Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 1st Mar 2009 16:48
Well, the moon is probably not big enough. After creating a moon of 2 units, you scale it to 1000,1000,1000 which is actually only 10 times larger (the scales are in percents). Then you position it at a height of 2000, which is pretty high in comparison to the size of you sphere (assuming you're viewing it from the origin).

Try using
make object sphere 3, 100
position object 3, 0, 2000, 0
color object 3, rgb(225, 225, 225)

BMacZero
19
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 1st Mar 2009 16:58
Whenever I have trouble finding an object, I put this in my main loop:

TEXT object screen x(ObjectNo),object screen y(ObjectNo),"Object "+str$(ObjectNo)

Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 1st Mar 2009 23:04
hahaha
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 2nd Mar 2009 16:30
Im with Sven, prolly not large enough

Login to post a reply

Server time is: 2025-06-08 03:53:11
Your offset time is: 2025-06-08 03:53:11