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 / How do I move an object across an axis?

Author
Message
Probably not Jessica
12
Years of Service
User Offline
Joined: 8th Nov 2013
Location: On the internet, duh, ya dingus.
Posted: 8th Nov 2013 00:58
How do I make an object go back and forth or up and down continually?
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 8th Nov 2013 05:13
You mean along right?

Depending how you want to control your objects you can simply use the move object commands:

Move Object - to move objects forward or backwards
Move Object Up/Down - for... well you can guess what it does
Move Object Left/Right

Just note, these move based off your objects forward facing angle so if you rotate the object it will move in the direction it's facing.

"Get in the Van!" - Van B
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 8th Nov 2013 10:10
Hi there
Not sure if our friend means moving up and down continually and automatically.

Quote: "Just note, these move based off your objects forward facing angle so if you rotate the object it will move in the direction it's facing."


That is what I did in my dangerous lifts 20 lines



I'm not a grumpy grandpa
PirateJohn
14
Years of Service
User Offline
Joined: 4th Aug 2011
Location: California
Posted: 16th Nov 2013 04:03
You just want it to oscillate? You could always use trig functions such as SIN() or COS().

Login to post a reply

Server time is: 2026-07-07 03:43:15
Your offset time is: 2026-07-07 03:43:15