I am seeking help from more experienced developers for my Godot project. It should be a simple maze game where the player must find the exit before being caught by the enemy, but I don't know why my player manages to pass through the walls during the first movement. However, if we wait, the game works normally. Also, I would like to center the enemy when moving, as it stays stuck to the edges. Thanks to everyone who takes the time to respond.If anybody want to download the source your up to

PS: Sorry for the lag in the video; my laptop is old, which is why I am using Godot 3.5. It’s the latest version it can handle.

StatusReleased
PlatformsHTML5
Release date 46 days ago
AuthorGameLearner
GenrePuzzle
Made withGodot
Tags2D, Godot, Indie, maze, new, tool, Top-Down
Code licenseMIT License
Asset licenseCreative Commons Attribution v4.0 International
Average sessionA few seconds
LanguagesEnglish
InputsKeyboard

Download

Download
Maze Out.zip 7.6 MB

Install instructions

Download it or play it

Download the project open it with godot 3.5+ for edit

Comments

Log in with itch.io to leave a comment.

I wanna preface this by saying I've never worked with Godot and I'm honestly a complete amateur with coding but I'd like to at least try to help.

I'm guessing the reason the player can move through walls on the first movement has something to do with a prioritization issue between the collision and movement script, aside from finding a way to fix the issue itself you could try making it so that the player is reset to the spawn position if they ever move somewhere out of bounds or change the movement system to where the player is "sliding" (like how the enemy moves) when you hold down a key instead of stepping each keypress. 

For the enemy I have no idea how you did the script for it so I can't say much but you could try changing it's targeting to always move towards corners instead of just taking the shortest path or it could also work to lock it's movement to a sort of grid pattern; for example locking it's Y position unless it's X position is on a multiple of 10 and vice versa.

Like I said I have no experience with Godot so I'm really not sure how you would go about implementing the above ideas but I figured I'd at least try to give some starting points with fixes I would try if I was experiencing the same issues. Hope I helped a little at least, good luck :)

(1 edit)

Thanks for your advice 👍👍 i gonna respawn the player if it is not on the navigation2d like you say