Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Boundary around an island so character cannot go out of boundary
Started by IndieEnthusiast Jul 29 2018 11:21 AM

- - - - -
1 reply to this topic
collision object boundary

Best Answer ldurniat , 29 July 2018 - 01:07 PM

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

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

IndieEnthusiast

[GLOBAL: userInfoPane.html]
IndieEnthusiast
  • Contributor

  • 227 posts
  • Corona SDK

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



[TOPIC: post.html]
#2

ldurniat

[GLOBAL: userInfoPane.html]
ldurniat
  • Contributor

  • 389 posts
  • Corona SDK

  Best Answer

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




[topic_controls]
[/topic_controls]