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 / Free Flight Command Problems

Author
Message
Relativity
20
Years of Service
User Offline
Joined: 29th Mar 2005
Location: Position is relative.
Posted: 14th Apr 2005 09:54
I have no idea what is wrong. When I use TURN OBJECT LEFT 1,10 or TURN OBJECT RIGHT 1,10, the object only turns 10 degrees left or right of 0 and then doesn't move any more. Here's the code (it's a long code because I'm not sure where the problem is. The place where I'm having problems should be bold.)



I would like to have it so it will move left or right ten degrees repetitively from the angle it is at as long as the left arrow or right arrow is pressed down. Any ideas what is causing this problem?

"It's against my programming to impersonate a deity!"~C-3P0
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 14th Apr 2005 15:53
the turn object left command only turns the object by the number and not any more so once it is turned 10 degrees it won't turn more then 10 degrees.
You probably want something like

i could be wrong

The happenings of tommorow are behind us now
Relativity
20
Years of Service
User Offline
Joined: 29th Mar 2005
Location: Position is relative.
Posted: 14th Apr 2005 23:14
But I used the same system in this program:



And it works fine. What's the difference in the two programs?

"It's against my programming to impersonate a deity!"~C-3P0

Login to post a reply

Server time is: 2025-05-23 09:10:22
Your offset time is: 2025-05-23 09:10:22