ScratchData LogoScratchData
Back to technoboy10's profile

A horribly inefficient pathfinder

TEtechnoboy10•Created June 24, 2014
A horribly inefficient pathfinder
7
5
113 views
View on Scratch

Instructions

Use down arrow to move target to your mouse on the stage. Use turbo mode if you like. SEE INSIDE FOR BETTER GRAPHICS PROBABLY

Description

fading script from @mikeono102 . Currently playing with more hexagons and the pen. How it works: The pathfinder makes a random choice: either go left, or go right. If the distance to the target after the choice is greater than the distance before the choice (with a margin of error), the path fails and a "new" path is tried. I could probably make it more efficient by keeping track of failed paths, but that complicates things, and I wanted this to be fairly simple.

Project Details

Project ID23984035
CreatedJune 24, 2014
Last ModifiedJune 25, 2014
SharedJune 24, 2014
Visibilityvisible
CommentsAllowed