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 / I need help with two simple things

Author
Message
Mike Schlueter
19
Years of Service
User Offline
Joined: 28th Nov 2005
Location: Somewhere that I\'m not suppose to be
Posted: 16th Dec 2005 15:28
Collision and my lighting. I posted them but it seems none know the answer to my questions . I posted my code to see if some one could help but when I post it no one replies . is it because i'm to stupid to see my problem and it so odvious to you guys ? even a reply thats saying that you can't find a problem would be fine.
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 16th Dec 2005 15:39 Edited at: 16th Dec 2005 15:42
Quote: " I posted my code to see if some one could help but when I post it no one replies"


Uh, yeah, sorry about that. I *was* actually going to read it through, but there was an awful lot amount of it (if I'm thinking of the right thread)....

Could you post just your per-loop code (including collision checking) & the light creation code & collision set-up code on it's own? That would make everything a load easier and get a lot of people (me included) to bother to help you; thanks in advance.

(Nothing personal, it's just that clicking the + sign by a Code Snippet and watching as this several hundred line unindented piece of code rolls out makes me (and ohters) suddenly more eager to go look for other threads to read.)

16-colour PNGs pwn.
Mike Schlueter
19
Years of Service
User Offline
Joined: 28th Nov 2005
Location: Somewhere that I\'m not suppose to be
Posted: 16th Dec 2005 16:15
object 5 is a jet(player)
object 15 is a box in the carrier that pervents player to go through

[/code]
rem sunlight
make light1
set spot light 1,10000,500000
position light 1,-400000,-250,10000
color light 1,10,0,25

rem collision
set object collision on 5
make object collision box 5
set object collision on 15

rem Update screen
sync

rem Main Loop
do

rem fps screen
fps#=screen fps()
text 0,0,"FPS: "+str$(fps#)

rem Control Player
if upkey()=1 then pitch object down 5,.5
if downkey()=1 then pitch object up 5,.5
if rightkey()=1 then turn object right 5,.5
if leftkey()=1 then turn object left 5,.5
move camera .5:move object 5,.5
if keystate(36)=1 then move camera 100:move object 5,100:texture object 8,9:texture object 9,9
if keystate(36)=0 then texture object 8,8:texture object 9,8
if inkey$()="," then roll object left 5,.3
if inkey$()="." then roll object right 5,.3

rem target
circle screen width()/2,screen height()/2,5

rem Get back position of object for camera
pitch object down 5,11
move object 5,-15
position object 6,object position x(5),object position y(5),object position z(5)
move object 5,15
pitch object up 5,11

rem Place camera and set orientation to object
position camera object position x(6),object position y(6),object position z(6)
set camera to object orientation 5


sync

rem Loop
loop
[code]
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 16th Dec 2005 17:42
code and the /code
not /code and conde!

[/center]
Mike Schlueter
19
Years of Service
User Offline
Joined: 28th Nov 2005
Location: Somewhere that I\'m not suppose to be
Posted: 16th Dec 2005 18:10 Edited at: 16th Dec 2005 18:12
object 5 is a jet(player)
object 15 is a box in the carrier that pervents player to go through



sorry. i was in a hurry
UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 16th Dec 2005 22:25 Edited at: 16th Dec 2005 22:32
Don't listed to the BEST programmer, he's an extreme n00b.

Heh...Jk, but really, please stop the BEST programmer.

Login to post a reply

Server time is: 2025-05-22 21:23:57
Your offset time is: 2025-05-22 21:23:57