I have a object that collides with a tile map and then erased tiles maps it collides with. I want to also want to have something happen when certain tiles are erased. for example when tile 0 and tile 1 are erased add 1 to points.
Here is what my code looks like:
+ leg_Head: On collision with Tilemap_Edible
----+ System: For "GroundTileX" from Tilemap_Edible.PositionToTileX(leg_Head.BBoxLeft) to Tilemap_Edible.PositionToTileX(leg_Head.BBoxRight)
----+ System: For "GroundTileY" from Tilemap_Edible.PositionToTileY(leg_Head.BBoxTop) to Tilemap_Edible.PositionToTileY(leg_Head.BBoxBottom)
-----> Tilemap_Edible: Erase tile (LoopIndex("GroundTileX"), LoopIndex("GroundTileY"))
--------+ Tilemap_Edible: Tile (LoopIndex("GroundTileX"), LoopIndex("GroundTileY")) ≤ 2
---------> leg_Head: Shake ScrollTo with magnitude 20 for 0.4 seconds (Reducing magnitude)
---------> System: Set MovesLeft to 10
Thanks in advance for any help :)