Beginner p5.js Lesson 4 - Respond to Mouse Events, object follow mouse

avatar

Last lesson you learned how to make animations with p5 by using if statements and variables. Today you learn to use a mouse event funciton to respond to mouse clicks as well as global variables for mouse coordinates for the object to follow the mouse.





Mathematics & Digital Technologies Education

Videos, quizzes, and other learning resources

Eddie the Magic Monk has 16 years teaching experience as a high school teacher in Australia. He will explain things to you in the simplest way possible to help you fully understand high school mathematics and computer science concepts.

Eddie began his tutorial channel on Youtube in 2012. His videos have been well received all over the world and now has 22+ million views! He sees the benefit in multidisciplinary learning hence his tutorials cover topics ranging from maths to dance.




0
0
0.000
1 comments
avatar

Hi! Your tutorials look awesome! Mawit07 thinks you might like to play Splinterlands! They just migrated today to HIVE! If you are interested, let me know and I will help you get started!

0
0
0.000