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 / [DBPro] - Detecting Mouse and Object Collision

Author
Message
WickedVixen
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: New Brisbane, Utopia Prime, VGC GHQ
Posted: 6th Dec 2011 22:19
I'm working on another game fro a few friends who love word games.
I need to know if I should use Sparky's Collision or if I should use the default DBPro collision detection.

If I use Sparky's, then would I need to create all my objects with that DLL?

I have 26 boxes that represent the letters in the English alphabet. These are numbered 1 to 26. I've tried to MAKE OBJECT COLLISION BOX ... and tried to find the mouse pointer to YROTATE OBJECTs in 45 degree increments while the mouse hovers over the 'letter', then selecting it, I used GHOST OBJECT ON ...
Once I have that, I fill in those letters (if they're in the puzzle), then remove the collision from being detected.

I was working on my program and have a backup, but lost power and didn't have this 'new' version saved. #O.o >_<

Any assistance would be greatly appreciated, while I work on getting this back to where I had it... (Here's hoping! )

There's a thin line between Genius and Insanity.
Which side are you on? (Or is it more likely that you're balancing precariously on that line and struggling not to fall one way or the other?)
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Dec 2011 22:40
I wrote an example on how to set up collision with sparky's. Check it out:

Sparky's Collision Example

TheComet

WickedVixen
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: New Brisbane, Utopia Prime, VGC GHQ
Posted: 6th Dec 2011 23:08
@TheComet: Thanks for the link. I'll check out the example you wrote and see what I can do for my game.

Cheers:

There's a thin line between Genius and Insanity.
Which side are you on? (Or is it more likely that you're balancing precariously on that line and struggling not to fall one way or the other?)

Login to post a reply

Server time is: 2026-07-10 21:41:07
Your offset time is: 2026-07-10 21:41:07