Is it possible to change/get an image from a sprite? (like Event: "Load Image from URL")
// Get Sprite Instance var myspriteobject = runtime.objects.Sprite.getFirstInstance // How can i get/change the frame image from the sprite? myspriteobject.FrameImage ??
Develop games in your browser. Powerful, performant & highly capable.
It's not currently supported in the scripting APIs. What do you need it for? What kind of format do you need? It could be HTMLImageElement, ImageBitmap, Canvas, WebGL texture, ImageData...
I need this for a own workaround for this:
construct3.ideas.aha.io/ideas/C3-I-1303
Currently, i can't check the external image are not loaded (wrong url or bad internet connection etc.)
Edit: And second, it allows me to load a spritesheet from an external url.
Edit 2: ImageData :)
I'd rather not add features to work around other missing features. The same work could be done to just fix the original problem. I'll take a look at that suggestion.