Get url of tilemap

#1

When the player touches a particular tile, the player should react differently than an enemy would. I need to check which Tile ID the current collision comes from in order to perform this check.

Here’s a snippet of my stage game object with its tilemap (a root element):
Capture

My player is separate, of course (also a root element):
2

How would I go about getting the current tilemap’s URL from the player’s script if different tilemaps are loaded at different times?

Thanks.

0 Likes

#2

Can’t you get the URL like discussed here? (SOLVED) Get properties of collision

1 Like