ScratchData LogoScratchData
Back to AddZero's profile

AI-Navigate-01

ADAddZero•Created June 12, 2008
AI-Navigate-01
27
22
760 views
View on Scratch

Description

Move the target arround to see if the cat can find it. Space: changes the obstacles z: Shows or hides the hard working AI-Probes. How it works: There are 2 hidden probes that are at work trying to find the target. Both start from the AI Cat. Probe 1: This probe attempts to go straight to the target, without hitting any obstacles. If it can, it changes the direction of the AI to the direction the probe was shot. Probe 2: This probe is shot a random direction until it hits a wall. at that point is tries to travel to the target without hitting a wall. if it can, it changes the AI direction to that initial random direction. There is a bit more to it that makes it work better. Let me know if you have any questions. It still has room for improvement. Feel free to use this idea for whatever you like.

Project Details

Project ID186736
CreatedJune 12, 2008
Last ModifiedJune 12, 2008
SharedJune 12, 2008
Visibilityvisible
CommentsAllowed