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 / more about my car

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 4th Nov 2004 00:54 Edited at: 5th Nov 2004 02:14
right heres my code if u try it just use any car and any other textures and stuff it dont matter if its correct anyway if u try it u will see that when u drive my car around the level whith the arrow keys once u let the upkey down u drift until a stop but somtimes when u let it down it just stops the speed goes down slow but the car just stops pls does anyone know why that happens i know its a lot of writing but pls help

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 4th Nov 2004 03:20
if u have no idea of doing the first one then pls help me on this one i need my car to stay at the height of the level because when it comes to a hill it goes through it i need it to go up it pls help thanks

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 5th Nov 2004 02:12
pls can som1 post back on any of these subjects i need help whith please

current projects
codename : tasgarad
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 5th Nov 2004 04:36
LOL.. I just looked at the speed section..

Why are you saying:
if speed = 1, move obj, -2
if speed = 2, move obj, -3
etc
(paraphrased)..

Why not do:
move obj, -speed-1

??? I'll run it later - 'lil busy rite now

steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 6th Nov 2004 01:21
slap myself on forehead that would save a lot of pointless code woudent it thanks will try now

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 6th Nov 2004 01:27
ah suprisingly it dont work aswell ah well ive grown a liking to that long pointless code

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 6th Nov 2004 02:22
i wouldent mind any suggestions about making stay ontop of the level hint hint nudge nudge

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 8th Nov 2004 03:51
anyone

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 9th Nov 2004 00:34
huuuh no one like me

current projects
codename : tasgarad
EddieB
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 9th Nov 2004 00:39
Stop posting like that. Use the edit button.

200GB HARD DRIVE 1GB RAM 256MB GRAPHICS CARD
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 9th Nov 2004 00:42
lol i knew som1 would get anoyed kk will stop

current projects
codename : tasgarad
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 10th Nov 2004 06:06
I keep getting "OBJECT ALREADY EXISTS"
Sir Spaghetti Code
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 10th Nov 2004 09:51
Use the Get Ground Height command for your Y position when you are positioning your car. This should keep it on top of the road.


"What is a game if not illusions stacked upon illusions?"
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 11th Nov 2004 01:17
1 when do u get object already exists
2 i cant use object position y ive tried in c shop where i made it i made it so the start of it is at the height of the litlle arow things and it just keeps positioning me at that height thats the best way i could describe it sorry pls tell me if u dont get it

current projects
codename : tasgarad
computer
20
Years of Service
User Offline
Joined: 5th Oct 2004
Location:
Posted: 16th Nov 2004 06:08 Edited at: 16th Nov 2004 06:19
Right, well it seems there is a way to get collision working with a model made in cshop. But it's quite hard.

I'll show you this thread I managed to find>
http://forum.thegamecreators.com/?m=forum_view&t=3401&b=10

I also had a small edit of your code. Instead of long lists of IF statements, which I guess is good if you want precision and no unexpected crashes appearing..



If you wanted to store height values in an array, you might like to try a height map. If your X model is covered with one single texture (I doubt it, it probably repeats), you could turn it to greyscale and read the values of the colors you get from each pixel. This would take some loading.. or perhaps run some code beforehand, store the values in a file, then read the values in from the text file. I remember finding a height map converter in these forums some place... take a look around.

bleep bleep
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 17th Nov 2004 00:58
Do what sk8erboy says! It's so annoying to us
and ESPECIALLY the moderators! So you don't 'wanna get
yourself banned!

BTW - Alright sk8erboy, mate! How are you?

-ALI-

N U K E S O F T :: DANGER! EXPLOSIVE GAMES :: [href]http://www.geocities.com/nukesoft0[img]
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 17th Nov 2004 01:24 Edited at: 17th Nov 2004 01:25
shut up nukesoft ur always sucking up to the moderators just cause u wanna be one (no offence moderators) i already had stopped posting like that about 20 years ago that last post i was talking to sir spagetti and bibzs1st because they posted me back

oh and thanks computer

current projects
codename : tasgarad
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 17th Nov 2004 05:48
Hey, man...
Here is a pretty good snippet...
Friction || Groung height || camera chase(simple)



The worst foe lies within the self...
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 17th Nov 2004 05:58
Obs.: Never put the some commando for crate or load a object between DO and LOOP without intercalating the object number or deleting then... Look:


Of course that this code will not run, ´cause "LOOP" repeats from "DO" to "LOOP" again, and repeat the action... In the 2ª time, the object is already in the memory.

Now, look the solution for any doubt :



In the secound LOOP, the main LOOP detects the existence of the object and does not create it again

The worst foe lies within the self...
Dave J
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 17th Nov 2004 06:21
Louiz_OFF, could you please change your avatar, everytime someone opens a thread that you've posted in, a login prompt will popup and it's getting quite annoying.


"Computers are useless - They can only give you answers."
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 18th Nov 2004 04:08
thanks guys but most of the posts are bout the ground height of the matrix and it a lot easyer than ground height of .x model and computer i ran ure code but it says syntax error at the last sync loop line

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 18th Nov 2004 04:24
oh and can u tell me more on how to do that thing u said about the color values i dont know how to but i could make my .x model exactly the same as the one ime using but just cover it in one texture and i could do it of that

current projects
codename : tasgarad
computer
20
Years of Service
User Offline
Joined: 5th Oct 2004
Location:
Posted: 19th Nov 2004 04:39
right, here you go
http://forum.thegamecreators.com/?m=forum_view&t=24570&b=6

that's one. You could also go into the Code Snippets forum and do a search for 'Height', there are afew out there. This isn't the one I used but it would do the same thing?

There will be differences between each program, so perhaps you could take a look at afew more and see the differences.

bleep bleep
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 20th Nov 2004 22:47
okay thanks i have looked at a few but i have no idea of how to put it into my game ur gonna hate me for this but pls help

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 21st Nov 2004 03:59
okay i make a bitmap in the position of my level darker when it is lower and lighter when it is higher but how am i going to do that whith my map i cant take a screenshot of my map and make a bmp by making the higher bits lighter and whatever so how would i do it pls

current projects
codename : tasgarad
computer
20
Years of Service
User Offline
Joined: 5th Oct 2004
Location:
Posted: 21st Nov 2004 22:28 Edited at: 21st Nov 2004 22:28
Well, you have the .X model on your computer. If you load it into DB and position the camera above the level (looking down) you would know where your track goes. I've made a very small program that makes some MATRIX's and tells you the positions. The way I thought about going, was to show your X level in DB, make the matrixs over where the car can go (not up big hills, just sticking to the dirt track or trenches). Because your X model is being shown underneath these matrixes you'll have a good idea. You could always make a PLAIN, texture it with your LANDSCAPE.BMP and do it with this.


You could try this approach. Forget about the HEIGHT map at the moment because you still don't know how accurate you want your matrix collision to be.. as it must match up with your X model.. otherwise the car will go through bits of the floor (this could be ok as the wheels will dig into the dirt ).

bleep bleep
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 21st Nov 2004 23:14
ah i see i will make the matrixes over where the car can go and once ive done hide them and then it will look like the car is moving over them kk got it and if i want a hill could i just rotate the matrixes at an angle so they go up like this / right or cant u rotate matrixes pls tell me if u can if yes/i will be set thanks
/

current projects
codename : tasgarad
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 21st Nov 2004 23:33 Edited at: 22nd Nov 2004 00:40
okay i dont think u can rotate matrixes so i dont know how i would do hills oh u said no hill sorry i dident see that bit but i really want hills and stuff isnt there anyway to do it

EDIT:i havebeen making matrices around my level and i was thinking if i have loads of different matrices around it and some of them are going up hills and whatever how will i make it so it stays at the matrix height until it reaches another

current projects
codename : tasgarad

Login to post a reply

Server time is: 2025-05-24 12:25:10
Your offset time is: 2025-05-24 12:25:10