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 Professional Discussion / how can this be done

Author
Message
that dude
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 12th Aug 2004 12:27
i have been trying to figure out, but can't. can anyone figure out how to recreate this program in dark basic?
http://www.zefrank.com/scribbler/

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
Three Score
19
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 12th Aug 2004 12:52
you got me seems pretty intresting though

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Aug 2004 14:07
if mouseclick() = 1 then dot mousex(),mousey()

"eureka" - Archimedes
Powersoft
20
Years of Service
User Offline
Joined: 1st Aug 2003
Location: United Kingdom
Posted: 12th Aug 2004 16:41 Edited at: 12th Aug 2004 16:43
#heres mine

lclick draw
rclick pick color
up,space,coontol change color


Create or Play? You choose!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 12th Aug 2004 16:56
I don't think any of you guys actually pressed the Scribbler button. It's a bit more complicated than drawing a line.

indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 13th Aug 2004 01:26
it looks like its drawing a line between each start and end point positions of the line calculated after the lines are created by the user.

that would require a linear progression of dual x and y positions recorded then applied back with lines after the scribbler button was activated.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 13th Aug 2004 02:10
Yeah, every loop when the mouse is down record the mouse XY and store it in an array. When you hit the scribble button, walk through the array and connect those coordinate pair based on distance to a random pair (that is within range) and the parameters set up in the config section.

Knowing how to get append elements to an array in DBP is essential.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
Hansie
19
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: California
Posted: 13th Aug 2004 02:44
My suggestion is to send the author of the "tool" on the website an email kindly asking him for his own algorithm. That would be a good start.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Aug 2004 03:00
Well I did click on it, and that's all i see it do, is draw a line with the mouse.

Oh, didn't see the other part of it.

"eureka" - Archimedes
The Real 87
20
Years of Service
User Offline
Joined: 3rd Mar 2004
Location: somewhere between 86 and 88
Posted: 13th Aug 2004 09:11 Edited at: 13th Aug 2004 09:12
You could make the array like thay said before, then have a loop that randomly picks two entrys in the array and if the selected points are with in a set range then they are connected with a line.

Make a straight line accross one side then make a line that angles off the straight line at a progressive rate. Then run the function and you will notice that very few points are connected below about half the way down the screne (depending on how fast you seperate the two lines).

Check out my RPG at
www.stickz.tk
that dude
20
Years of Service
User Offline
Joined: 1st Jan 2004
Location: USA
Posted: 13th Aug 2004 11:16
i issue a challenge to ye. mainly, because my computer is down and this is the closest i get to coading so, who will make the closest mach to the program?

http://www.nuclearglory.com/?u=fearik = sweet as hell collision system. easy on that leather thing in your back pocket too.
the left side of my head isn't bigger, the right side is just smaller
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 13th Aug 2004 11:51 Edited at: 13th Aug 2004 11:54


Draw then press escape and it will go into scribble mode.

Unfortunalty you can't use alpha without moving to memblocks so it doesn't look as good.

PII 300 : 64mb ram : voodoo II 12mb : Win98
The Real 87
20
Years of Service
User Offline
Joined: 3rd Mar 2004
Location: somewhere between 86 and 88
Posted: 13th Aug 2004 14:26
I think it looks just as good as the original!

Check out my RPG at
www.stickz.tk
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 13th Aug 2004 16:06
Very nice winch, may I suggust adding it to the codebase.



A book? I hate book. Book is stupid.
(Formerly known as Yellow)

Login to post a reply

Server time is: 2024-04-20 15:48:56
Your offset time is: 2024-04-20 15:48:56