|
-
May 5th, 2003, 09:32 PM
#1
Thread Starter
Junior Member
help with Pi Darts!!
Ok i have this Pi darts game, the board is shaped with a square and a circle inscribed inside of it. I have it set up so the user types in how many darts they wanna throw and it randomly plots that many points on the board.
Now how would i make it so that the dots that did not land on the board are say red instead of blue?
any help will be appreciated, and if you dont understand what im saying please be honest. I can TRY to go in more detail if needed !!
Thanks alot,
-Chaos
-
May 5th, 2003, 10:50 PM
#2
Fanatic Member
What are you using for the "dots"? This would be very easy to do with shapes. You could plot a circle shape where the dart land and set the fillcolor to blue if on the board and red if not.
"Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!
Resistance is futile, you will be compiled . . . Please!
-
May 6th, 2003, 09:50 PM
#3
Thread Starter
Junior Member
no, it just shows a random dot... here's a frag of the code:
VB Code:
dim x as integer, y as integer
x= 6000*rnd+1
y=6000*rnd+1
Pset(x,y), vbBlue
something like that!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|