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 / Help with 2D movement

Author
Message
Riana
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location:
Posted: 26th Aug 2005 21:31
Hello I'm just starting to get to grips with DBP and am past text commands. Now I want to make my first 2D game. So my question is if I were to create a circle (or any other shape) on the screen how would I go about moving the circle around. (I have a feeling it's got to do with camera movement).

Thanks in advance,
Riana
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 27th Aug 2005 05:25 Edited at: 27th Aug 2005 10:58
for DBC (so should should translate identically into DBP)

something like this:



camera doesn't affect circles or any other 2D shape...

if your game has 3D as well, such as your circle is a reticle. then use draw to front before it enters the loop.

managing and moving several circles may be harder, as long you draw one circle before trying to move the next one. DBC certainly doesn't have commands to move 2D graphics like it does for 3D ones, but it shouldn't be too hard...

Example:



controlling 2 circles...

hope that helps...

...maybe one day I'll finish a project

Login to post a reply

Server time is: 2024-09-24 03:25:35
Your offset time is: 2024-09-24 03:25:35