Strange behavior from Collision bound

TF101

  • *
  • Posts: 84
Hi @all,
i have a problem and i don't find a solution.
I have add in my Tileset a "barrel" and i create a polygon as a collision bound:
See Picture #1

After the testing on my device the collision bound is there but in addition a square around my polygon...
I dont find the problem...
See picture #2

Maybe anybody can help me?

Sincerely
Thomas

Luyren

  • *
  • Posts: 2754
Tools > Clean Project
Make sure that polygon is the only collision on your barrel.
Make sure your barrel is using regular physics instead of simple/minimal physica.
Check if there is code in your barrel creating actors or even creating collision bounds.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

TF101

  • *
  • Posts: 84
Hello Luyren,
Thank you for your response and your help.

I've cleaned up the project. No changes.
The barrel is a tile, not a actor. So i can't set some physics or add code.
And the collision bound is the only one, like you can see in my picture#1.

Sincerely
Thomas

Luyren

  • *
  • Posts: 2754
My guess is the tile combiner is merging all the shapes, though I could be wrong. Are the rocks in your screenshot actors, or tiles? Either way, try making them actors instead.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

TF101

  • *
  • Posts: 84
Hello Luyren,
Thank you for your response.

Yes, the Stones are Tiles.
I dont understand why every new tile get the box around the polygon...?
In my picture i have a barrel as a actor and a tile. As a actor it works but as a tile not.
Are the amount of the collision bounds limeted? I have approx. 80 Collision bounds, not all in use.


Luyren

  • *
  • Posts: 2754
Are the amount of the collision bounds limeted? I have approx. 80 Collision bounds, not all in use.
What do you mean by that?
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

TF101

  • *
  • Posts: 84

Luyren

  • *
  • Posts: 2754
I don't think there's is a limit on that, but I could be wrong. It also seems to me the vast majority of those would be better off as actors.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

TF101

  • *
  • Posts: 84
I found the problem, it was of course my mistake.
I have several tiles on top of each other. The bottom tile had the square collision bound.

Kind regards,
Thomas