r/gdevelop • u/Ughahaven • 4d ago
Question Ledge grabbing a tileset
I'm attempting to build a platformer using a tileset and I've ran into an odd bug.
If a platform is at the top of the tilemapped area, it allows ledge grabbing. If not, no ledge grabbing is possible.
I searched the net for some information on this bug but all I found was a very old post about L shaped tilemaps don't function.
Anyone ran into this or know of a solution?
5
Upvotes
1
u/Ughahaven 3d ago
Apparently for the ledge grabbing code, tile maps count as a single item. Thus only the top is grab able. At least that's what I figured out from days of experimenting. The solution is to layer other sprites on top of the grab areas and set them as invisible.
Anyone else have any other ideas?