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 / Get Ground Height

Author
Message
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 14th Dec 2003 19:08
I have a problem with a flying game I am making - when you come to the floor you just go through it. Attached is the part which should make you go to the crash section.

and then near the end


Am I the only one here who's really confused?
In the shadow of the valley of death we will need our torches.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 15th Dec 2003 02:49
Your code's fine mate, you're just checking for such a precise value, probably a value to the 3rd decimal place.

Just change your code to:
if camy# <= groundy#
goto youdie
endif

Voila!
Hope I Helped...


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

Login to post a reply

Server time is: 2025-05-22 00:29:24
Your offset time is: 2025-05-22 00:29:24