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 / It's still on the run

Author
Message
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 8th Mar 2004 09:39
Hi I'm Lee,
I've used this command to get my objects moving:

move object 14,-1.3
move object 3,-1.0
move object 8,-1.0
move object 16,-1.0
move object 2,-1.0
move object 19,0.1

Someone told me that the second load of digits (the 1.0's ) make the object start moving in that amount of steps, but my objects just keep on going and don't stop. I'm using negative numbers because my object travels that way. If you can't use negative numbers please tell me. I'm killing myself trying to work this one out. Thanks a lot.

he who runs away, lives to fight another day
Cybermind
Valued Member
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 8th Mar 2004 10:01
Hi Lee, If your program looks like this :

DO
Move object 1,1.0
Loop

Then your objects will keep moving because every time the program comes over the line Move object, it will move that object, you could make it like this :

DO
IF UPKEY() = 1
MOVE OBJECT 1,1.0
ENDIF
LOOP

Now the object will only move when you press upkey.
Let me know if this solves your problem or if I should help you further
CyberMind
Vusay
21
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Ozzfest (Yeah right)
Posted: 8th Mar 2004 10:06
Cheers. It's now working. Thanks Cybermind. If you give me your real name or just your first name or whatever I'll stick you in my credits for my game. Thanks again.

he who runs away, lives to fight another day
Cybermind
Valued Member
22
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 8th Mar 2004 16:21
Thanks, My name is Stefan Christensen, and my email is [email protected] (you are welcome to mail and ask questions about programming, and I will see if I can help you
Best Regards, Stefan "CyberMind" Christensen

Login to post a reply

Server time is: 2025-05-23 08:42:13
Your offset time is: 2025-05-23 08:42:13