Boundary around an island so character cannot go out of boundary

Hi,

Using Tiled Map Editor and Berry

I have an island and a rpg top down character 

  • The island has obviously water around it

  • I do not want character to move into the water, so an invisible boundary is needed

  • I can place a boundary using objects and making them invisible and setting hasBody=true and bodyType=static

  • I cannot also use polyline, since that has some alignment issues in simulator which needs to be fixed from Berry engine

Question is : Is there any simpler or a better way of defining border so that the character may not move to water from the island. This is a top down game so character is always in collision with the water.

Polyline without the alignment bug seems to be the simplest solution

Using invisible object is sort of a painful way of restricting character

Please advice.

Thanks,

Ahmed

Hi ahmed_shahjada, 

  • I cannot also use polyline, since that has some alignment issues in simulator which needs to be fixed from Berry engine

Fixed. Get latest version of Berry from github.

Have a nice day and keep coding:)

ldurniat

Hi ahmed_shahjada, 

  • I cannot also use polyline, since that has some alignment issues in simulator which needs to be fixed from Berry engine

Fixed. Get latest version of Berry from github.

Have a nice day and keep coding:)

ldurniat