ScratchData LogoScratchData
Back to mega-grinder's profile

AI path finder

MEmega-grinder•Created September 27, 2020
AI path finder
28
17
374 views
View on Scratch

Instructions

This is an AI path finder that does not use a grid system to operate! Click were you want to put the target, then click were you want to place the seeker/AI. To build walls drag your mouse and when your ready click space. As far as I know it always works, but sometimes it can't fit through some gaps. How it Works _____________________________________________ The AI points to the target and moves 1 step until it touches it or touches a wall. If if touches a wall it goes back to were it started from and changes by 1 degree each time until it is past the barrier. If it still can't get past the barrier it then changes by -1 degrees. once it gets past the barrier it marks the coordinates. It does this until it touches the target.

Description

All code and art is 100% by me. You can remix it if you want to use it. I might make an update soon that allows you to move the target while it follows you, and also make it move at a constant speed. I now have a new grid AI engine with a tank, if you want to check it out here's the link https://scratch.mit.edu/projects/440410581 Tags _____________________________________________ #AI #pathfinder #remixable #quick #easy #alwaysworks

Project Details

Project ID429998860
CreatedSeptember 27, 2020
Last ModifiedNovember 25, 2020
SharedSeptember 27, 2020
Visibilityvisible
CommentsAllowed