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 / ? about object movement

Author
Message
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 22nd Apr 2005 18:02
Ok sorry for another stupid question, but I can make the object move forward and backwards, and even rotate from side to side. but how the heck to i make it move up and down on the Y axis. I want my object to beable to be lifted off the ground strait up and bring it back strait down. but I cant figure out how.
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 22nd Apr 2005 23:33 Edited at: 22nd Apr 2005 23:35
I guess this is one way to do it


NARUTO IS THE NINJA.......not really
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 23rd Apr 2005 02:49
that’s not quite it. the object is a character and will be walking around but it also has the ability to fly. i basically want there to be an ascending and descending button. so im trying to figure out how to get the char object to ascend and descend. and they will be able to ascend or descend as high or as low as they want by how long they press down the appropriate button.

sorry guess i should have eplained my self better the first time.
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 23rd Apr 2005 05:44 Edited at: 23rd Apr 2005 05:46
I think This Is What Your Looking For:


Controls:

-Mouse Movement - Controls Camera View
-Right/Left Mouse Click - Decend and Ascend
-Down/Up Keys - Move Backward and Foward
-Right/Left Keys - Move Right and Left

That should work just fine for what you want, if you need any help or have any questions just ask .

Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 23rd Apr 2005 06:05
yeah thats exactly what I needed thanks!
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 23rd Apr 2005 06:13
well actually how would i modify it so that the left and right buttons will make the object rotate left and right instead of strafe. If I can get that then ill be very satisfied with my object movment.
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 23rd Apr 2005 06:27
never mind I figured it out.

thanks!!!!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 23rd Apr 2005 06:37 Edited at: 23rd Apr 2005 06:39
Glad to help .

By the way, the object is actually turning when you move the mouse around. If you want a better look you can try this:



The Model(Idle.x) that goes along with the code is attached to this message, just make sure you save the code and model in the same directory before you run it.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-23 11:20:12
Your offset time is: 2025-05-23 11:20:12