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 / How to keep an object from flying off the matrix?

Author
Message
Lzdude69
21
Years of Service
User Offline
Joined: 21st May 2004
Location: Indiana
Posted: 23rd Jul 2004 13:33
Well, the title explains it all.

When I die...I want to be buried upside down...So thy critics can kiss my a$$...Oh yeah, Im not dying...
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Jul 2004 17:04
make matrix 1, 3000,4000,30,40

if x# < 0 then x# = 0
if x# > 3000 then x# = 3000
if z# < 0 then z# = 0
if z# > 4000 then z# = 4000

"eureka" - Archimedes
Lzdude69
21
Years of Service
User Offline
Joined: 21st May 2004
Location: Indiana
Posted: 24th Jul 2004 03:28
well, thats what I did, but that technique does'nt work very well with my variable setup, thanx anyway

When I die...I want to be buried upside down...So thy critics can kiss my a$$...Oh yeah, Im not dying...
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 24th Jul 2004 09:50
Just replace the variables he gave with the variables in your program...

You did mean going off the sides of the matrix, right?

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]
Lzdude69
21
Years of Service
User Offline
Joined: 21st May 2004
Location: Indiana
Posted: 25th Jul 2004 09:01
yeah

Im watching you...
Lzdude69
21
Years of Service
User Offline
Joined: 21st May 2004
Location: Indiana
Posted: 25th Jul 2004 09:11
got it, invented my own way, see the way you guys suggested wouldnt work because, I was using more than one variables, thanx anyway

Im watching you...

Login to post a reply

Server time is: 2025-05-24 22:09:50
Your offset time is: 2025-05-24 22:09:50