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 Professional Discussion / Code automatically highlighting, not executing proper code

Author
Message
Fresser
19
Years of Service
User Offline
Joined: 16th Aug 2006
Location:
Posted: 3rd Apr 2012 22:50


in the above snippet, the line beginning with "position object 2" in the loop becomes highlighted and does not execute. It normally executes a former line of code in which the positions are not a product of the object's x and y positions but directly relative to the negative sin and cos of the z-angle of object 1 as expressed in a previous line no longer used.

I am saving all before executing, and I do not have auto-highlight enabled.

Ich liebe Hundepfeifen; du hast wohl keine gehört.
Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 3rd Apr 2012 23:20 Edited at: 3rd Apr 2012 23:21
I'm not sure exactly what you're trying to do but that line is highlighted because 'object position x(2)(-sin(object angle z(1)))' is not valid. If you're trying to multiply the object position by what is in the brackets then it should be 'object position x(2) * (-sin(object angle z(1)))'. Alternatively, it may be 'object position x(2) - (sin(object angle z(1)))' that you're aiming for.


Previously TEH_CODERER.
Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 6th Apr 2012 01:07
Good eye.

Login to post a reply

Server time is: 2026-07-09 17:42:33
Your offset time is: 2026-07-09 17:42:33