![]() ![]() ![]() ![]() So what's happening here is you get the Sprites texture (the AnimatedTexture) get its current frame, then get the resource for the current frame, and set the cursors texture to that resource. t custommouse cursor(texture.getframe texture(texture.currentframe)) You only need a Sprite with a script, AnimatedTexture set as the Sprites Texture (your cursor animation), and this line of code: So I went down a couple of rabbit holes and finally figured out a fix. Ronald at 18:57 1 It is barely an answer, just a reference to a a page where you can find the answer -). See for example Displaying a Busy Cursor on effbot. If you use the normal method of having a sprite follow the mouse position then you'll get input lag, that bugged me quite a bit. 1 Cool Cloud: yes, the root window (or whatever you called it) has the method nfig (cursorsomecursor. I fixed this recently to not have that one frame lag, this is the top result when searching for animated cursor so ill just leave this here: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |