Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Detecting what actors are at what coordinates

micahmicah Posts: 85Member
Is this possible? Like in a sidescroller, when the player presses up, how can you detect if there's a ladder actor on the layer beneath the player actor? Or if a bad guy actor walks into a wall, how do you know which wall it hit, so you know which direction it needs to turn?


  • EastboundEastbound Posts: 1,074Member, BASIC
    Well for the ladder, you could just check if there was a collision with the player.

    As for the second, you can't check that, because actors unfortunately can't access other actors.
  • JGary321JGary321 Posts: 1,246Member
    To make the actor turn in a specific direction when hitting a wall you would just place invisible actors around the map. To make it easy call them move left, move right etc... Place those around the map where u need it.
This discussion has been closed.