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 / Moving help

Author
Message
BrokenGlass
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location: In teh lab coding
Posted: 7th Jun 2007 02:27
ok so im making this game where your mouse is the crosshair and u have to shoot the enemy(everything is working perfectly)

Theres one problem


when it starts the enemy moves way to fast. is there a way to slow it down
enemy = xpos2
im tryin to make it move slower across the screen.

Current Project: Learning DBP
Twu Kai
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location:
Posted: 7th Jun 2007 12:50
What I would do is set xpos2 as xpos2# so that the foe can move in small increments, or you could use the sync commands.

You would put
at the beginning, the 'Sync' command at the end of your loop, and also at the bottom of your whole code. Hope it helps.

BrokenGlass
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location: In teh lab coding
Posted: 7th Jun 2007 13:12
Wow thanks it worked

Current Project: Learning DBP

Login to post a reply

Server time is: 2024-11-25 18:04:11
Your offset time is: 2024-11-25 18:04:11