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 / matrix probs

Author
Message
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 27th Jan 2004 22:27
yo dudes i have a stupid prob

this is it:

the matrix thing i have sort of solved it but with 1 prob and that is when i go through the transporter it takes me directly back to where i was (the second matrix it directly above the 1st)



the code that i have posted needs to be altered so sum 1 plz help
Sjakie
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: Netherlands - Delft
Posted: 27th Jan 2004 23:02
Sorry dude, but i don't understand yer problem ... You need to explain HOW your game works and why yer using 2 matrices... with this info, i (and the others too i think) can't help you...

Juzt a dude who likez progging - Me loves RTS games
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 27th Jan 2004 23:19
so this is my prob

i have several matrixes cause im making an rpg and the higher matrix ure in the harder the mobs (u got it so far?)

and the prob is tat the 2nd matrix is positioned at 2,0,10000,0
where the 1st matrix is positioned at 1,0,0,0 (u got it so far?)

hes the prob whenever i got through the teleporter to get to the second matrix but when i go through it it teleports me to the 1st matrix again without going to second and it is because the get height bit.....
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 28th Jan 2004 00:19
oh and if n e one can they tell me how to make a box on the window thats stays so i can use it as a health bar.....

i know its a newbie qu but i need help on it
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 28th Jan 2004 08:18
"Yobj# = Get Ground Height(1,x#,z#)"

There's ya problem "dude".

You are telling it to get the ground height of the first matrix, thus, everytime you call that, it will position the character ( on the Y axis ) at the height of the first matrix.

To change it, you need some sort of variable defining what matrix ( level ) you are on.

So, if you were on level 1, levelnum = 1, if you were on level 2, levelnum = 2 etc.

Then, you use that variable to get the height of the matrix you're currently on.


Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-22 11:28:05
Your offset time is: 2025-05-22 11:28:05