More stuff: You can walljump on the sides of water (sometimes), and also it seems like on the bouncy level, everything is duplicated.
@QuickV Yep, working on fixing the first, to the second, I think you're on the right track, I think for some reason the every level is invisibly duplicated above and to the left... I have a suspicion it's to do with the way the polygon meshes are moved around when being used for collisions... Basically the idea is that each polygon mesh is designed so it's center is at 0, 0 (x, y), and when the player needs to see if it's colliding, the mesh is moved to the x and y coordinate of the object, the same happens for the player, and if they overlap the player has collided.
@QuickV Update: I think I figured out where the problem was, the PolygonMesh (that was actually kinda surprising, I expected it to be with the player...), I just needed to dramatically increase a value to account for distance, I think it was just a little too low, either way with any luck it's fixed now, I just need to wait for the Repl to find the updated script and test it! :D I originally made the Polygon stuff on KhanAcademy, another site not only for coding; Polygon Collisions Polygon Rotation
Update: It doesn't crash anymore, no matter what I do... Except the invisible block is still there xD.
@QuickV To the first, that's good, although I'm pretty sure it will still crash if a moving
PObject, like the one on the level with the sliding
PObject, moves into the player's hitbox, it will either crash or walljump., to the second, working on it... I'm still not quite sure what is causing the invisible blocks but hopefully I'll figure it out soon :)
Another thingy: When you're in the water, and you jump from one of the platforms, you kinda teleport up (it thinks it can jump in the water, but I'm pretty sure that's not supposed to be possible).
@QuickV Yep, I knew that, working on fixing it, what's happening is to check if the player is touching water every time the player wants to check if it's colliding, whether it's touching water or not is reset, then the player may 'notice' it's colliding with a solid platform, but it hasn't realised it's in water yet :)
@QuickV It crashes sometimes when you are running the game in the template section, their is a link that fixes that at the bottom of the template page. It also crashes when an object moves into the player, I am working on fixing that but that should only occur on the demo level with the sliding platform.
@QuickV If it crashes on the first you need to use this link: https://platformer-template.mattdestroyer.repl.co/ (I think it's something to do with the screen sizing when you move the custom console and the code area so that the HTML page takes up the full screen) or it could be that at that time I was making changes to it and that caused the crash but then I later fixed what caused the crash.
Is there an invisible block on top of spawn? Or is that a glitch :P... It's probably a glitch, because otherwise someone wouldn't find it in like 5 seconds lol.