Hi is it possible to export only sprite sheet to base64 or some other format.
I want to use spritesheet as mouse cursor but limit is image max 256px, so i thought maybe its possible to export from phaser to base64 and use for css
Hi is it possible to export only sprite sheet to base64 or some other format.
I want to use spritesheet as mouse cursor but limit is image max 256px, so i thought maybe its possible to export from phaser to base64 and use for css
Can you just cut out a new image in an image editor?
that would be the last solution and most easy way, if i dont find something that would not require double files or to many files i will do in that way.
Do you mean a spritesheet frame as a cursor image? And I don’t understand how the 256px maximum is relevant.
I will explain in more details what i want to do.
I have inventory in game that use html ui, so you can click on item and item icon is bind to mouse movement so you can move it, im not using drag and drop because of way how game mechanic will work and items interaction.
This is not the problem at all and its really easy to made i already build it.
But i come to idea instead to bind image and move along mouse movement i can maybe just change image cursor with spritesheet frame since its not drag and drop so i can afford that and its even easier. I dont need basically anything then. Idea was to use image spritesheet frame for mouse cursor and show only little 32x32px icon as cursor image and that’s not the problem. Problem happened that my sprite sheet is 1024x1024px and max size that browser allows for image cursor is from 128-256px depends on browser.
So i though then maybe i can from phaser export base64 of just already generated icon and use it for mouse cursor it will be 32x32.
But now its complicated with all of that xD that is better to keep what i already made. I dont think that i will look for solutions anymore.