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 / Pointing the camera

Author
Message
Sonic 91 Software
20
Years of Service
User Offline
Joined: 19th Mar 2005
Location: In a Cryptic Crossworld!
Posted: 18th Dec 2006 20:35


the above code is a loop from a driving game I'm making, and at the end of the level, I want the camera to point back at the level to show a wall being raised (gosub raise1) when the player object reaches a certain position (in this case, -30 on the x axis). however, when the player reaches this position, they are able to drive past it without anything happening with the camera or the wall that is supposed to be raised. I know the raising loop works, as it works with an earlier gosub. Is there something wrong with this loop?

"Fight the good fight of faith,
Lay hold on eternal life"
-1 Timothy 6:12
Sonic 91 Software
20
Years of Service
User Offline
Joined: 19th Mar 2005
Location: In a Cryptic Crossworld!
Posted: 18th Dec 2006 21:13
no worries, sorted it! for reference, I changed the "if ox#=-30" to "if ox#<=-30"

"Fight the good fight of faith,
Lay hold on eternal life"
-1 Timothy 6:12

Login to post a reply

Server time is: 2025-05-26 05:39:17
Your offset time is: 2025-05-26 05:39:17