How do I get a tile frame from a tilemap

Get help using Construct 2

Post » Wed Nov 09, 2016 8:21 pm

How do i get a tile frame from a tilemap?.
Image

I need to get tile number 4.
Example: If my Player is overlapping tilemap & tile frame of type = 4; Do Something.

I need to get the frame type of the tilemap im stading on. Like if tilemap fram type is number 0 give a boost in the player.
B
29
S
4
G
1
Posts: 23
Reputation: 2,791

Post » Wed Nov 09, 2016 9:50 pm

Tilemap.TileAt(Tilemap.PositionToTileX(Player.X),Tilemap.PositionToTileY(Player.Y))

Gets the typenumber of the tile the player is currently on.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, R0J0hound and 8 guests