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 Discussion / Problem with my mouse sprite

Author
Message
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 2nd Feb 2006 21:43
Code included so is media, When I exit my main loop and go to the subroutine edit_bmp, I can't seem to get my mouse sprite displayed.
Is there a problem with my mini-loop or sync? I sound like a geek I know maybe cause I am one.



Media is an attachment. Could anybody help me?

Programming is fun with DarkBASIC!

Attachments

Login to view attachments
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 2nd Feb 2006 22:51
One of the problems is that you check for collision of the entire mouse. It needs to be at the tip of the mouse only. The way it is right now if you move the mouse to the right a bit you still have collision because of the black area of the mouse. Collision is detected by the entire image... not just the non-black areas.



It doesn't work right now because "bmp$" = nothing when you push the edit button and it runs the command "load image bmp$,id".

Also it's better to create all sprites outside of the do/loop. That way you're not re-creating them every loop.


Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 2nd Feb 2006 23:05
Checking that out now. Hey is that bassman or something as your avatar from megaman?

Programming is fun with DarkBASIC!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 3rd Feb 2006 05:40
Yeah its Bass. I love the Megaman series.


Login to post a reply

Server time is: 2025-05-23 10:50:07
Your offset time is: 2025-05-23 10:50:07