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 / playing around with a drawing app experiment

Author
Message
Dsarchy
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: UK- Kent
Posted: 22nd Mar 2005 23:16
this is very basic but if anyone could point me in the right direction of linking the objects like in the "3d tool" and the "pencil" too it would be very helpful, any comments on how the code is constructed would be handy

lol i guess it goes without saying but please be harsh but fair. It will be good to hear any comments from people but please be constructive i am still new to the language although i have had DBP for a while (as you might of been able to tell from my forum profile)

thanks all, Dan



[IMG] http://www.sharksoftdbspot.com/Ban.gif[/IMG]
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 23rd Mar 2005 04:08
Great start. With some work, it can be really useful.
Can you get some sizing options, like the size of the circle or box?

Also, if you go to the DBPro Discussion forum and
check in the DPRo Challenges code (by Ric), there are some 2D Primitives in there you might find useful.

Re: linking objects
Here's two possibilities. There are ton more I am sure.

1) Don't use MouseX/Y(). Hide the mouse and create your own mouse pointer using a sprite. Then move the pointer around using MouseMoveX/Y() and divide it by some number (like: MouseMoveX()/50,MouseMoveY()/50 , for example).

2) Use For/Next loop to draw multiple times between screen updates.
Example:


Couple of things with this code though. You would need to handle the newx/y and lastx/y so that they get set properly based on if the mouse is being held down or clicked, released, and clicked again. Also, if you put it into a function, you would need to make lastx/lasty global variables.

If you need help with any of that, just post again to this thread.

"Droids don't rip your arms off when they lose." -H. Solo

REALITY II

Login to post a reply

Server time is: 2024-11-13 20:12:39
Your offset time is: 2024-11-13 20:12:39