Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Click Away Balls
#2
(04-25-2022, 11:14 PM)bplus Wrote: Hey @Dav, 

Remember this one?

Oh yeah, now I do!  That's the one you showed me how to get a mouse click in a circle. I had been doing it in a square, which isn't ideal for clicking a ball. The line you added...
IF SQR((mx - BallX(m)) ^ 2 + (my - BallY(m)) ^ 2) < BallSize(m) ...
...was the ticket.

By the way, thanks for all the times you helped my code at the old forum!

- Dav

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
Click Away Balls - by bplus - 04-25-2022, 11:14 PM
RE: Click Away Balls - by Dav - 04-26-2022, 12:15 AM
RE: Click Away Balls - by bplus - 04-26-2022, 01:07 AM
RE: Click Away Balls - by bplus - 05-14-2022, 02:35 AM
RE: Click Away Balls - by bplus - 05-14-2022, 03:56 AM
RE: Click Away Balls - by bplus - 05-14-2022, 04:54 PM
RE: Click Away Balls - by Dav - 05-16-2022, 01:04 PM



Users browsing this thread: 2 Guest(s)