Open TimuJiang opened 7 years ago
How to change/update sprites textures in matterjs on clicking other object?
Did you try changing body.render.sprite.texture?
body.render.sprite.texture
yes
If you are using react make sure to use require("...")
require("...")
How to change/update sprites textures in matterjs on clicking other object?