ScratchStats LogoScratchStats

ScratchStats

Explore Scratch statistics and discover trending projects and creators.

Community

  • Apply for Verified
  • Apply for Reviewer

More

  • Donate
Not affiliated with Scratch.
Back to ProfessorEndless's profile

Squared Attractor (coding challenge #4)

PRProfessorEndless•Created April 9, 2017
0
0
11 views
View on ScratchView on TurboWarp

Instructions

the black square follows the mouse and the gray square is constantly set to your mouse position. i don't know how but the gray square have bouncy pads on all four sides, so watch as the black square is endlessly bounced in the opposite direction.

Notes & Credits

getting tired of circles, time to work with squares and rectangles. this challenge in particular checks if the black square is closer to the gray square on the x-axis or y-axis and check which side the black square touched on the gray square. if the black square moves too far into the gray square however, it'll teleport! fixing this might require time as a variable. previous coding challenge - https://scratch.mit.edu/projects/154881460/

Project Details

Project ID154894075
CreatedApril 9, 2017
Last ModifiedApril 19, 2017
SharedApril 9, 2017
CommentsAllowed