Is it possible to program a game feature where a player could load a photo of their own face which gets resized/warped correctly and displayed as a face on a rag doll character in the game? This is assuming that some editing of the photo has already been done in advance by the player so that only the face appears in the loaded photo and the body and background have already been erased.
Warping the sprite is not possible with the current pixie renders
Swapping sprites is possible with PIXI. Here is a little project proving it: texturePack.zip
warping my friend, not swapping.
like projecting the sprite on an object like a ball or a tilted surface.
at below: the question was both, replaceing and warping.
If warping would be a thing, i could make my game muuuuch smaller, cause i simulate a tilt of the board by using lots of sprites.
Oh, Sorry. It is probably also possible with the displacement map layer effect tho. I think the question was about replacing a resource at runtime with a photo, in that case my project could help.