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 / Starting a new row for a sine line

Author
Message
Southside Games
16
Years of Service
User Offline
Joined: 1st Jan 2010
Location: Don\'t tell me what to do!
Posted: 6th Mar 2013 06:06 Edited at: 6th Mar 2013 06:09
Hello.

For an RTS I'm making I wrote some code that will rotate the selected units box to face a certain direction. This way you can make a unit "wall" to face wherever you want. it works fine. Now I'm working on code to make it so the user can choose how many units are in a line, and if there are more than the set number it will start a new line behind the old

However whenever I try to add code to start a new line behind the current. It can't seem to do it. no matter were I put it in the sine code.

I'm sure it must be a simple fix, But I can't seem to find it. maybe it's to close to me.



Thanks
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Mar 2013 19:44 Edited at: 8th Mar 2013 01:24
I have no way of testing this right now, but I think it'll work.


I made a small correction and built a runnable demo for ya.



"You're all wrong. You're all idiots." ~Fluffy Rabbit

Login to post a reply

Server time is: 2026-07-07 04:32:57
Your offset time is: 2026-07-07 04:32:57