Log In  

If I really have to post my sloppy noob code I will but I am hoping that I can get a quick answer.
When my player sprite moves onto a grid flagged 1 then that grid is solid and the sprite stops moving. If the flag is 2 then it moves to a different room AKA different MAP() value(s)
This works as it should but the solid collision still applies to the tiles from the previous room. I do not understand this because the solid function should update when the new map tiles are drawn.

In other words. It looks like my character is in a different place but all the solid grid tiles are from the previous "room".

P#46723 2017-11-26 15:49 ( Edited 2017-11-26 20:51)

Make sure whatever is checking if the tile is "solid" is actually checking the map tile's actual coordinate, not the pixel location that it's being drawn to.

P#46724 2017-11-26 15:51 ( Edited 2017-11-26 20:51)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2019-12-12 06:39 | 0.008s | 2097k | Q:11