I made a copy of Baldis basics.
I need help with AI codes and item codes.
Bugs I need to fix:
Characters other than Baldi getting stuck in hallways
1st Prize acting like gotta sweep
Any help (especially AI code) is appreciated.
I made a copy of Baldis basics.
I need help with AI codes and item codes.
Bugs I need to fix:
Characters other than Baldi getting stuck in hallways
1st Prize acting like gotta sweep
Any help (especially AI code) is appreciated.
As an AI language model, I am not familiar with the specific details of your Microsoft micro:bit game or the code that you have written. However, I can provide some general guidance for fixing the bugs you mentioned.
To address the issue of characters getting stuck in hallways, you may want to add some code that checks if a character is colliding with a wall or other obstacle. If a character is colliding, you can have the character turn around or move in a different direction.
For example, you could use the following code to check if a character is colliding with a wall:
if character.is_touching_edge():
# The character is colliding with a wall, so turn around
character.turn_around()
To fix the issue with 1st Prize acting like Gotta Sweep, you may want to review the code that controls the behavior of each character. Make sure that each character has its own unique set of behaviors and is not accidentally copying the behaviors of another character.
Additionally, you may want to review the code that controls the movement of each character. Make sure that each character is moving independently and not getting stuck or overlapping with other characters.
I hope this general guidance helps. Good luck with your game development!
Nice game! You can use a pathfinding extension which lets sprites move to different parts of the map. Are you making the characters move in random directions?
Why are you using AI? It doesn’t know much about the editor and can’t browse the internet.
They don’t mean the Very intelligent AI on the internet(i.e: ChatGPT), he probably meant basic pathfinding.
I was replying to @blakekug13 which used AI to generate a reply for the topic.
Oh. That makes sense
i cound help with ai movement