Actors and Tileset Communication Ploblem/Solved

KGBlag

  • Posts: 38
I'm trying to make it so if there are tiles is a specific location in comparison to an actor the actor will behave differently. I'm trying to do this without using collisions. I can't really find any ways of getting actors to communicate with tilesets outside of the collisions so if anyone has an answer it would be deeply appreciated as relying on the collisions is very finicky. Is there a block that addresses none-actor tiles?

« Last Edit: January 02, 2019, 01:21:07 pm by KGBlag »

CmdrWhitey13

  • Posts: 505
Are you trying to check an underlaying tile for the actor? Maybe try finding the row, colum of the actor compared to the tile. Also, tiles can respond data attahed to them.

JeffreyDriver

  • Posts: 2262
I've done this on my current project where I use mostly tiles, and very few actors. See image attached.

KGBlag

  • Posts: 38
Something like this may work. I guess I should be more specific though. I'm trying to have the actor check to see if there is a tile right below them, like the line of pixels right under them in order to to toggle a "grounded" attribute. Of course I could use collisions but I find them to be unreliable.  Thanks for the help.

Update: it works, thank you. I am concerned however how this method would fair on ramps. Thank you again.

« Last Edit: January 02, 2019, 01:20:42 pm by KGBlag »