Challenge Outline Create an object whose instances calculate and display its distance and direction from the mouse cursor. | Level 1 ![]() Beginner 12 Minutes Medium 8 Minutes Advanced 4 Minutes |
Additional Challenge Allow a mouse click to add and remove instances. | Points In Time 10 Additional 20 |
Notes on Approaching This Challenge
Just get the distance and angle using appropriate scripts.
Guide
You can get the distance and angle:
dist=distance_to_point(mouse_x,mouse_y);angle=point_direction(x,y,mouse_x,mouse_y) ...
