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


#1

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


#2

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


#3

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.


#4

Nice! This is pretty cool


#5

You can try any web site to clone this web.