Author |
Message |
Waked
|
Posted: Sat Mar 17, 2012 1:00 pm Post subject: How to make a Cursor |
|
|
HI, im making a simple paint program. im trying to make the shape of the cursor change every time i change the tool but its not working. is it possible to do that on Turing? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sat Mar 17, 2012 1:02 pm Post subject: RE:How to make a Cursor |
|
|
You mean the mouse cursor? You can't actually change anything about it within Turing, however you may call an external program that can do that, but I can't remember if there is one on here or not.
Other than that you have to just live with the standard mouse cursor, but you can draw your own as well, and change that one. |
|
|
|
|
![](images/spacer.gif) |
Waked
|
Posted: Sat Mar 17, 2012 1:06 pm Post subject: RE:How to make a Cursor |
|
|
yea i tried to make my own, but im not sure how to make it work properly. where ever i move the mouse with the shape that i made it would erase whatever is beneath it. |
|
|
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sat Mar 17, 2012 1:13 pm Post subject: RE:How to make a Cursor |
|
|
yep, what you need to do is save what the paint program looks like, and then redraw every time you move the mouse. Alternatively you could use sprites which save the image behind it, and then redraw the image when it moves. |
|
|
|
|
![](images/spacer.gif) |
Waked
|
Posted: Sat Mar 17, 2012 1:16 pm Post subject: Re: How to make a Cursor |
|
|
i tried that but it makes the program lag and it becomes super slow. isnt there a different way? |
|
|
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sat Mar 17, 2012 1:18 pm Post subject: RE:How to make a Cursor |
|
|
the 2nd method, using a sprite, or you coudl do it yourself, of just saving the part of the image that is under the cursor, then redrawing it when the cursor moves. That gets more complicated though, and is still slow. |
|
|
|
|
![](images/spacer.gif) |
Waked
|
Posted: Sat Mar 17, 2012 1:24 pm Post subject: Re: How to make a Cursor |
|
|
oh alright. well, thanks anyways
but i was looking for a way that would keep the program running smoothly |
|
|
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Sat Mar 17, 2012 1:43 pm Post subject: RE:How to make a Cursor |
|
|
using an external program to do it. You might have to write it yourself. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|