Combining hashes or getting components of go? [SOLVED]

How to combine hashes like strings *(string1..string2) or getting components of Game Object? I have collection factory and I need to change color of object’s sprite. Help me please.

If you have the ID of the object and the component, you can use msg.url() to combine them:

local sprite_url = msg.url(nil, object_id, "sprite")

…then use this new URL for whatever you need:

sprite.play_flipbook(sprite_url, "walk")
3 Likes