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.

Newcomers DBPro Corner / sprite vs. mouse problem

Author
Message
Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 22nd Feb 2010 14:13
Hello

I'm having hard times when i try to make toolbar to my current project. So how can i make mouse to collision sprite?

this far i'm using screen coordinates but when i change position of the button inside the program, it prints the coordinate values.

code this far:

Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 22nd Feb 2010 14:23
forgot to add the sprite to the code;

Load image "MEDIA\ICONS\powerfist.bmp",7
sprite 7, 250,526,7
Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 22nd Feb 2010 14:45
Solved it by hiding mouse and made new sprite which works as cursor
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 22nd Feb 2010 17:19
I find a lot of times I end up answering my own question while I'm writing out the questions here. Half the time I post something, the idea that solves it comes to me just after I hit submit.

Regnuar
15
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 22nd Feb 2010 17:21
Heh, seems like it's pretty common.

Login to post a reply

Server time is: 2024-09-28 14:28:37
Your offset time is: 2024-09-28 14:28:37