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 / moving an object.

Author
Message
dared
20
Years of Service
User Offline
Joined: 20th Nov 2004
Location:
Posted: 1st Jan 2005 18:28
I cannot make my object move any direction but backwards.

Can you help me?

Who Loves coding?
Any1?
Oh forget it!
EddieB
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 1st Jan 2005 18:52
Ok.

if downkey()=1
move object 1,-1
endif

you just change + to -

Eddie b

[href]http:www.graphics-monkey.co.uk[href]
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 2nd Jan 2005 00:38
Try the above, but also check a few things....

1.if your using a .3ds .x model, check to make sure that the model is rotated, and fixed to point forward, this can screw everything up.

2.make sure that your values are correct, becaus if both your move commands are told to move by an increment of -1, you will go backwards no matter what you press.

for number 1, you just need to rotate the object untill it is looking forward, and then use the command "fix object pivot objN"

Hope that helped.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.

Login to post a reply

Server time is: 2025-05-24 08:36:44
Your offset time is: 2025-05-24 08:36:44