Code for Sprite to detect/move to closest cloned pellet (Construct 2)


This simple code doesn't require any Global or Instance variables to be created by the player.
The red head always moves towards the nearest green pellet.

Tagging @Rawrbear @MR.GAM3R


This is awesome, and it is coded in Construct 2, right? Could you make this in Hopscotch as well?


A few months ago I showed pics of code from Tynker to do this.
The "Point towards" and " Distance" blocks can be replicated with code on Hopscotch.
I may have deleted the pics as very few forum members showed any interest.


Nice! This is pretty cool


You can try any web site to clone this web.