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.

Newcomers DBPro Corner / Move Object Help.

Author
Message
Saiphox
21
Years of Service
User Offline
Joined: 16th Nov 2003
Location:
Posted: 20th Nov 2003 22:34
I am using a code "Move Object 3,+.01"

It works fine to move the object, but it will never stop moving. How would I go around to stopping it?

A future thanks for your help,
James

-Coke and Puerto Rican rum will get you drunk if you didn't know.-
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 20th Nov 2003 22:42
Attach an IF statement to it

if upkey()=1 then move object 1,1


Dont forget to Join the Forums!
Saiphox
21
Years of Service
User Offline
Joined: 16th Nov 2003
Location:
Posted: 20th Nov 2003 22:45
if dist#<25
yrotate object 3,(OBJANGY)+180
point object 3,Cx#,Cy2#+200,Cz#
move object 3,+.001
endif

-Coke and Puerto Rican rum will get you drunk if you didn't know.-
Saiphox
21
Years of Service
User Offline
Joined: 16th Nov 2003
Location:
Posted: 20th Nov 2003 22:47
Sorry I didn't post this in the post before but, that is the code i have, but the object won't stop.

-Coke and Puerto Rican rum will get you drunk if you didn't know.-
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 20th Nov 2003 22:50
well then dist# is always less than 25.
check the value of dist#

-RUST-

Login to post a reply

Server time is: 2024-11-25 18:28:55
Your offset time is: 2024-11-25 18:28:55