tile Kind At
Check if the type of tile next to the sprite is of a specific kind
You can check to see if the tiles next to or under your sprite have a specific tile image. A boolean is returned.
Parameters
- direction: the direction of the tile, relative to the sprite:
left
, right
, top
, bottom
, or center
(directly under your sprite).
- image: the chosen tile image
Returns
- a boolean which indicates whether the tile has the specified image.
Example
Build a brick wall of tiles in the scene. Send a arrow sprite towards the wall. When the sprite hits the wall, say what type of tile it contacted.
See also
is hitting tile,
on overlap tile
on hit wall