Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello, thanks for this awesome script!  Ive found an infinte loop and replicated it in your demo.  Generally if the character clips into a wall the game will still run, however in corners this can freeze the game.  In RmBasicDemo, position the character to coordinates 122, 311. Moving the character now with a controller will freeze the game.  It doesnt seem to happen when using the keyboard. Not sure if this needs to be fixed as the character shouldn't be clipping anyway, but thought i'd let you know.  

This is happening for me as well

If I set a high speed in the corner, the game freezes

I'll take a look!

Okay, I don't see the same issue.  Define "high speed", which corner, basic or advanced, which controller method?

I have the same problem. Apparently with the latest updates, the script does not work as before, even with the compability mod

Everything seems to be working for me.  What exactly are you experiencing?

(2 edits)

I Use tile collision I sometimes get stuck and there is a chance that the game will freeze. https://images-ext-1.discordapp.net/external/UZFVf_tk6sHPgHBiysILtOfV_U55eM_uQWI...

https://i.imgur.com/dK3MrFp.png

Yeah, using "tile collision" is a VERY important piece of information when reporting an issue :D

(4 edits)

Sorry) I can send you the project itself. There is your code without edits. I don't know how to explain the problem to you. All I can see is that in the junction of tiles, the player sometimes gets stuck in a collision, and when doing so, there is a chance that the game will freeze.

Or maybe it would be more correct that you send your working version with a tile collision, and I will try to find the problem. Maybe I did something wrong. although I have tried several times.

Yeah, maybe I need to include a tile collision example in the project itself.  And then I can run my own tests and such.

Nice, waiting for the example!)

(1 edit)
What about the example? Approximately when to expect it?

Difficult to say.  My life is currently a shitstorm and game dev has taken a back seat to just about everything.

Hopefully things calm down soon.

Good luck, I hope it goes well! I look forward to your return.

Oh, yeah.  If you drop the player on a wall, it's likely not gonna move.  Seems to happen to me for both keyboard and controller... because the player is stuck in the wall you dropped them on.
This is something you can solve with a "get out of the wall" function easily enough, and not really something I plan on fixing as part of this package.

Just wondering if you tried my method of moving the character to 122, 311 in the rmBasicDemo room? I can send you a copy if youre getting different results. For me the issue is that the game freezes in corners and I cant push them out of the wall.  However if the character is completely in a wall, the game wont freeze and they can be pushed out.

Yeah, I tried that exactly location in the room and it just doesn't work at all with keyboard or controller because the player is embedded in the wall from the start.  If you wanna send me a link to your example, I'd take a look

(2 edits)

Here is an example file with the character slightly overlapping a corner. At the start of the game, use a gamepad and it will freeze.  Using a keyboard I can walk out of the corner.  If the character starts more inside of the solid, it wont freeze.  

Here is a video showing the freeze.  First part is keyboard movemet, second is gamepad.  I added a timer just to help with the visualization.

Thanks for taking a look

So, check out this tweet:
https://twitter.com/Pixelated_Pope/status/1516815617109635073?s=20&t=VWha6dl9I8t...

Just call that function in your step event before movement_and_collision (or after or both, honestly) and you'll never get stuck in a wall and freeze the game ever again

Thanks for that!