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 / Platform Engine Bug

Author
Message
Mitch
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: The Netherlands
Posted: 8th Dec 2003 21:09
What's wrong with it? I personally think it has something to do with the "position object 6,x#,y#,z#" command, though I don't know how to fix it.. Please help



Me vs. The World...
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 9th Dec 2003 01:06
what exactly is the problem?

by the way, you should have the position definition in the main loop.

Am I an Idiot...or is everyone else just really smart?
MikeS
Retired Moderator
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 9th Dec 2003 01:11
Need some more information. I personally don't konw what you're even trying to achieve. Though, being the person I am, I broke down your code and simplified it. Try working from the code, and building up whatever you were trying to do.

[code tested in DBP]


A book? I hate book. Book is stupid.
Mitch
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: The Netherlands
Posted: 9th Dec 2003 17:01
Thanks yellow! Btw... I think I know how to solve my problem now.. The problem was that I couldn't move. This was because of the collision detection with the ground, looping the positioning of the object.. I am going to make a detector object above the player. When the DETECTOR collisions an object (x and z), then I must position the player... Will this work or is there an easier solution?

Me vs. The World...
Penfold
21
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 9th Dec 2003 19:51
Srry yellow I was browsing this code and felt like having a little play with it and found it was DBPRO.. I know you said it was .. but this is a darkbasic clasic forum isn't it?

the set camera to follow is as far as I can see the only part that doesn't work in clasic

Ok so its not a mouse.
MikeS
Retired Moderator
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 9th Dec 2003 23:11 Edited at: 9th Dec 2003 23:12
Yea, my fault Penfold. Since pro and classic are so close, I assumed it might work. I only have pro though, but as long as Mitch got all he needed, I think we're okay.



btw, what is the equivalent in classic to "set camera to follow"?(Or do you have do mess with all the position camera commands? Set camera to object orientation?) So I know for future refrences.

A book? I hate book. Book is stupid.
Penfold
21
Years of Service
User Offline
Joined: 3rd Dec 2003
Location: RED postbox houses of parliment
Posted: 11th Dec 2003 00:00
ME myself I've made a function to set the camera to follow whichever object it needs to.

Pass the variables of the objects position to the function...

function cameraview1(x,y,z)
position camera x-12,y+5,z
point camera x,y,z
endfunction

positions the camera 12 behind 5 above and then targets.

(thx to whoever helped me with this in the past)

Ok so its not a mouse.

Login to post a reply

Server time is: 2025-05-22 00:54:37
Your offset time is: 2025-05-22 00:54:37