I’m curious how you can change the mouse cursor icon into an object of your own creation, as in TimezAttack or Nanosaur or just about any other game out there. It’s probably very simple, but I couldn’t find anything about it in the docs or the forum. I tried using the mouse-following script posted by cblarsen, but that wasn’t quite it. My life depends on learning the answer to this question. (Okay, that was kind of an exaggeration…) TIA for your help!
–terransage
Here, go look at the script I put on the wiki some time ago. It’s probably more complex than you want (alpha fading and different shapes for the edges of the screen), but you can take out the extraneous stuff.
Wow, I’ve never saved someone’s life before!
–Eric
Thanks a lot, Eric! I have to run to work right away, but I’ll try it tonight. It’s a relief to know that my name won’t be in the obituary!
–terransage
Thanks, Eric, it works great! I just have to work it out with a cursorLock script I have going at the same time: I click a GUI Texture to get rid of the cursor (as well as the Texture itself) and press Escape to bring it back. When it comes back, however, it’s the new GUI Texture cursor, compliments of your script, and it will no longer click on or pass over the cursorLock GUI texture, if that makes any sense. I tried to use function OnMouseOver() and OnMouseExit() to activate and de-activate the cursor-changing GUI Texture, but–as I mentioned–the new cursor won’t pass over the GUI Texture that has the cursorLock script. Hm, it’s a fun logic problem for me to figure out.