Hi, I have been away from construct for quite a long time and had an idea for a small game where a car finds it way to a point in a maze.
I have been following tutorials to generate a new maze per-level and the car is supposed to find a path to the small circle.
I have gotten to a point where the car does try to fnd the path but seems not to factor in the solid objects. It also doesnt seem to go in the direction of the circle in the first place.
Any help on figuring this out would be awesome. Here's a link to the .c3p
https://drive.google.com/file/d/1oks4HWiKK9JQKTjesEBrBQHMwvqaHrJs/view?usp=sharing
I couldn't open your project, but have you made sure you're regenerating obstacles? Sometimes I forget that and have similar issues
Ah. Shame you couldnt open it. Did it allow you to download the file at all?
I did try using the regenerate obstacles action but with no luck unfortunately.
I made some changed, take a look:
dropbox.com/s/kqq0q2e1jgbbx0f/CABBi2.c3p
You need to wait 1 tick before and after regenerating the map. Also, cell size 32 is too much, the smallest cell that worked for me was 15.
Thank you. I'm going to take a look now and test it.
I just got back to the bunker after my government approved exercise time.
Develop games in your browser. Powerful, performant & highly capable.
Wow, that works. Thank you for the quick help. I can keep building now.
joshuamkerr I just found out how to properly fix pathfinding in your game. You need to set Cell Size 32, and Cell Border -1 or -2.
Thanks dop2000,
I have made that change and have been doing some work on this in the meantime and it's mostly working. I have tried to scale up the maze and added a compas system.
The only bug I have is that sometimes when the car spawns it ends up overlapping the wall. It's not very often so the only way to replicate the bug is to keep clicking 'new maze'.
Here's the new cp3 if you'd like a look. https://drive.google.com/file/d/1PoA_vTP_C7mcGclO2DfUV1SwU8zuG2zO/view?usp=sharing
It's getting there.