Skip to content

Tiled custom property collisionType: how to get object data on collisionStart? #2847

Answered by eonarheim
cdelstad asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cdelstad

Apologies it took a moment to answer you!

The Tile Plugin can add a collision in an Object Layer (custom property collisionType=passive). However, when the collision happens on the player (collisionStart event), I cannot find any information on the TileObject. I see an 'other' object as part of the collision, and it says it is an actor, however, it does not give me an object reference or object data so I can tell what object it is. I cannot seem to add a name to the object when it is added by the Tiled Plugin.

In the current incarnation of the plugin, this can be accessed off of a component on the colliding actors. (This doesn't seem to be very well documented unfortunately…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eonarheim
Comment options

Answer selected by cdelstad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants