Get properties of collision


I have different types of bullets in my game. Some have better stats than others. When these bullets collide with any character, I need to be able to pull the bullet’s stats in the character’s collision response code.

Is there a straightforward way of doing this? I looked at the “sender” and “message.other_id” vars but they don’t lead me to the bullet’s #script component, so I can’t pull its properties.



Get url of tilemap

If you have the id you can create a URL from it:

msg.url(nil, message.other_id, "script")
1 Like


Thank you, that’s very helpful.