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 / bikegame problems

Author
Message
Code eater
17
Years of Service
User Offline
Joined: 17th Feb 2008
Location: Behind You!
Posted: 23rd Feb 2008 13:24
Im basicaly making a 3d motorbike race game and am not sure how to do a few things so i made a list, if you can help me with any of them please post

-I have a little speedometer jpg picture which i put on the screen (a sprite) and I want to print text (preferably using the print command because i dont really have a clue how to use the text command) on top of it but the text is printed behind the sprite, any ideas?

thats all for now if i get any more problems ill say

codeeater
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 23rd Feb 2008 13:40
Did you use the search option?

We've answered this loads of times before...

Paste the sprite image on a hidden bitmap, use the Text command to place the text where you want it then grab the image with the text on it and use it for your sprite.

TDK_Man

Code eater
17
Years of Service
User Offline
Joined: 17th Feb 2008
Location: Behind You!
Posted: 23rd Feb 2008 22:03
cheers,,,

now i have a new question:

I want to make it into a multiplayer game so is it possible to split the screen into two cameras? if so how?

Any ideas how to make 4 other NPC bikes ride around every track on their own?
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 24th Feb 2008 15:17
Quote: "I want to make it into a multiplayer game so is it possible to split the screen into two cameras? if so how?"

no, darkbasic does not support multiple camera's. It can shwitch between all the time but that look very wrong.
Quote: "Any ideas how to make 4 other NPC bikes ride around every track on their own?"

do a seartch for "ai" , "racegame" and "waypoints" or any combination of the three

Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 24th Feb 2008 18:22 Edited at: 24th Feb 2008 19:45
Quote: "It can shwitch between all the time but that look very wrong."

What if you had the camera switching between the tow positions each loop, and broadcasting onto only one half of the screen?

Lee Bamber - Blame Beer
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 24th Feb 2008 18:59 Edited at: 24th Feb 2008 19:00
It will flikker or lagg all the time

Insert Name Here
18
Years of Service
User Offline
Joined: 20th Mar 2007
Location: Worcester, England
Posted: 24th Feb 2008 19:46
I seem to remember someone managed to make a two person camera once, I think it was latch. Can't remember though.

Lee Bamber - Blame Beer
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 24th Feb 2008 20:58
Quote: "I want to make it into a multiplayer game so is it possible to split the screen into two cameras?"


Yes. It only runs at half the speed though.

I did a demo years ago which had four screens but wasn't really of any use other than looking nice.

With two screens, it's just about possible to do other things as well as update the screen:

Zip file attached.

TDK_Man

Attachments

Login to view attachments
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 24th Feb 2008 23:09
could you do something like
set viewport to one side of the screen, copy to a bitmap, then set viewport to other side of screen (second angle) and copy that to the bitmap (transparent)?

demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 26th Feb 2008 19:18
I managed to get a 2 camera thing to work for one of the DBC challenges once; I think I used something off the Code Snippets board for it. It didn't work when I reloaded the file though, although I'm not sure whether it was because of 1.2 or Vista...

"A West Texas girl, just like me"
-Bush
Code eater
17
Years of Service
User Offline
Joined: 17th Feb 2008
Location: Behind You!
Posted: 28th Feb 2008 21:49
Ill have a look cheers

Login to post a reply

Server time is: 2025-06-04 01:47:26
Your offset time is: 2025-06-04 01:47:26