Stuck in tiles.

twinter3

  • Posts: 98
Hello,

I have looked through the forums and I have tried several of the workarounds for this.  Most of the posts are older so I thought I would ask for an update.  Here is my problem: when the player jumps up towards a tile to the left for example while the player is in the upward motion it slides up the tile to land on top.  The player then drops below the tile top and is stuck.  I have constant collision detection on and I have tried rounded tiles.  Still stuck.  Attached is a screengrab.  Thanks for you help!!!

Alexin

  • *
  • Posts: 3127
Enable debug drawing to see the shapes.

Try various shapes and make sure none of them is concave. Get back to us if the problem still persists.
"Find the fun"
alexin@stencyl.com

twinter3

  • Posts: 98
Hello.  Thanks for the reply.  I did what you mentioned (screenshot attached) tried various shapes.  No luck. Still stuck. I appreciate your help.  This program is the best!



 

Hectate

  • *
  • Posts: 4643
Are you 100% positive that all your animations for that actor have collision shapes, and that they all collide with tiles? If not, one particular animation may allow the actor to start falling through the tiles (since they aren't set to collide or don't exist) and then when it switches back to another animation it gets stuck...
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

twinter3

  • Posts: 98
Yes, I am just using a left and right animation for testing.

I did notice that when you use circles for collision for the player, the problem is fixed but you slide off tiles when close to the edge.  So I used a circle combined with the box and the problem seems to be fixed.  Not sure if this is the best work around but it works.




Rob

  • *
  • Posts: 1268
Please read up on this if you have a chance.

For square actor stuck in tiles, you can generally do

(1) set to circle collision for actor

or if you have the patience

(2) make a round-corner polygon like in this thread:

http://community.stencyl.com/index.php/topic,1820.msg13178.html#msg13178

Perhaps simply turning off continuous collision would help too (not sure about this particular one though).

GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Alexin

  • *
  • Posts: 3127
I think he isn't experiencing the snagging issue, Rob. The player actor is literally getting stuck inside the tiles' shape. It has happened in the past.
"Find the fun"
alexin@stencyl.com

Rob

  • *
  • Posts: 1268
OK. Thanks for the clarification.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

coleislazy

  • *
  • Posts: 2607
I recall this happening when two corners hit each other dead-on. It happens in one of the sample games or kits (with Noni), and I think its the cause of the same issue in Swim. I haven't played around with it to be sure, but this seems to be the case.