Problem Description
When using Mouse.Set Cursor from Sprite, an issue occurs for animated cursors under Chrome & IE
Attach a Capx
See the example Capx here: dropbox.com/s/ilpiesz9r0zkfsu/Cursortest.capx?dl=0
Description of Capx
If you run this Capx, you will notice that the sprite displayed on the layout for test purposes is animated, but not the mouse cursor. If you edit the code to replace "action1.png" and "action2.png" with "press1.png" and "press2.png", you will notice that the cursor does animate properly with these other images.
See forum thread: scirra.com/forum/issue-with-using-images-for-mouse-cursor-animation_t150940
Steps to Reproduce Bug
- Create a sprite with several animation frames
- Run animation and have code with ->Sprite.On Frame Changed : Mouse.Set Cursor from Sprite
- Execute using Chrome or IE
Observed Result
Mouse cursor should be animated, but instead only shows one of the sprite's frames
Expected Result
Mouse cursor should change with each of the sprite's animation frames
Problem is solved if you use Mouse.Set Cursor to Normal, then use Mouse.Set Cursor from Sprite, but this should not be needed or
should be part of warnings in the user-manual.
Affected Browsers
- Chrome: YES
- FireFox: NO
- Internet Explorer: YES
Operating System and Service Pack
Windows 7 Professional SP1
Construct 2 Version ID
R206