Auto Drone Experiment v2

Cralant - Custom level - from Android
Play24 players liked this.Log in to like this level.

The second version this time with more optimized and rewritten code. This method uses the hypotenuse length of the orthogonal nodes to detect which is the best to move to. Canceling out those has get stuck in corners or wall pieces. The script also disallows the drone to double back on itself.

Now its much smarter, accurate and precise although there is still the occasional issue with certain layouts. And not taking the shortest route. Further fixes should make this work better.

This version still uses the same collision detection as the previous script, eventually I will implement the more precise version using a single query and working out the intersections of the objects with each tile. This should make the collision detection more accurate and more optimized.

Views: 1721 Downloads: 413 Unique objects: 4 Total objects: 20

Derivatives

Discuss this level

Log in to comment on this level.
  • principiafreak300: Allow.derivates please!
  • PeterZ: This could be a random maze generator
  • marat1000000: allow derivatives please
  • TechZ2124: Please could you make this level editable so I can try to add this system on my drone ? That would make it even more awesome thanks to you !
  • TechZ2124: Awesome
  • mrsimb: Nice job!
  • JOELwindows7: Awesomely light speed lol
  • JOELwindows7: Better. Let me learn!, Allow Derivatives!
  • Rubicon2: That is fast and smooth, huge improvement from the first version. Well done
  • Demon666: its things like this that make me wish i was better at programming.... good job tho i'm looking forward to the future versions of this
  • Cralant: @zardOz: each step at the moment. In future versions I will add a test to make sure the end can be reached and the path doesn't get stuck and then map it out.
  • zardOz2: Speedy, is it calculating the whole path at the start or at each step?

LEVEL ID: 5340