Spodii / netgore

Cross platform online rpg engine using C# and SFML
http://www.netgore.com/
40 stars 16 forks source link

NPCs get stuck against platforms. #304

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
An NPC was following me and jumped up a platform and in doing so, became stuck 
against the side of it. See screenshot for visuals.

[img]http://farm6.static.flickr.com/5092/5391107345_425d09054a.jpg[/img]

Original issue reported on code.google.com by darksumm...@gmail.com on 27 Jan 2011 at 12:02

GoogleCodeExporter commented 9 years ago
Thought I'd attach the picture since link didn't display correctly.

Original comment by darksumm...@gmail.com on 27 Jan 2011 at 12:03

Attachments:

GoogleCodeExporter commented 9 years ago
I have had this happen quite a lot to me, too. I made a patch a few months 
back, and that seemed to fix it at the time, but then I started noticing it 
again.

What happens is that the NPC keeps trying to move left, and they align in a 
perfect way that they keep getting "pushed up" instead of dropping down. The 
place they are stuck in that screenshot is actually where two walls join to 
make one large wall.

I was never able to figure out a good way to solve the issue without imposing 
much on performance. Luckily, this is only an issue for sidescroller users, and 
in reality, you probably won't even see it occur much. So at least its not a 
"breaking" issue.

Original comment by Spodiii on 28 Jan 2011 at 5:44

GoogleCodeExporter commented 9 years ago
Wouldn't the best way of fixing this be to just make any block below a platform 
block a wall (instead of another platform)? 

Original comment by Wazkata...@gmail.com on 7 Jun 2012 at 3:58

GoogleCodeExporter commented 9 years ago
There are no actual "platforms". The issue is when you have two walls on top of 
each other. Under just the right circumstances someone can "latch" on at this 
point between the two walls. With platforms instead of walls, this won't ever 
be a problem.

Original comment by Spodiii on 8 Jun 2012 at 12:22

GoogleCodeExporter commented 9 years ago
This should be fixed now. Could have sworn I already closed an issue related to 
this - must have been a different one.

Original comment by Spodiii on 2 Jan 2013 at 5:47