With Context Steering, Sprite1 is aware of every obstacle within a radius of 50 pixels. Controls Adjust the Context Res to change how many directions that Sprite1 checks while moving, and adjust the avoidance to change how close Sprite1 will get to an object. More Details After digging up every article on Context Steering that I could find, I created an implementation of it in Scratch. I will admit, it needs work, (especially the Evaluate Best custom block) but it might just be good enough for some of my own projects. Some things to note While turning up the context res does make for smoother movement, it also makes for a more expensive process. This can be made much worse when trying to use Context Steering for enemy AI, as there will be several of them. It's a good idea to use a high context res for something like a helper character, but a context res of 8 or lower should be just fine for enemies.
Credit to Griffpatch for the Rotational Velocity code used for direction blending in the When I receive message2 script. You can sneak a peek at that code here. https://www.youtube.com/watch?v=d1g1SRksKdw Credit to these articles for discussing Context Steering. I never would've figured it out without them. http://www.gameaipro.com/GameAIPro2/GameAIPro2_Chapter18_Context_Steering_Behavior-Driven_Steering_at_the_Macro_Scale.pdf https://kidscancode.org/godot_recipes/3.x/ai/context_map/index.html https://jameskeats.com/portfolio/contextbhvr.html