Sprite from MapTile

I would like to create an object that contains multiple images in it coming from a MapTile.I want to do it dynamically from a script.

I was thinking to do it by creating an Object with X Sprite instances and then change the image of each of them by getting them from my MapTile object but I can’t see a way to set a Sprite image from code.

Can anyone help me?

Thanks

1 Like

Watch this series by Andreas Jirenius. He works for King and his videos are very useful.

Commando in Defold

It will show you exactly how to do what you want to do.

3 Likes

Thanks buddy! I got the answer already. I will watch the entire video anyway. It looks very useful.

1 Like