How do you make it so when an Animation toches an Object something happens | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you make it so when an Animation toches an Object something happens

How do you make it so when an Animation you can control touches an Object it gets bigger and grows in size? Like Agar.io how when you eat the blobs you grow in size, How do I make the same concept as that?

26th Mar 2018, 9:08 PM
AClue
AClue - avatar
2 Answers
+ 1
I haven't actually looked if Agar.io uses either canvas or WebGL, but it uses one of them. You should look up "canvas games using JavaScript". I have a bunch of web canvas animations you could look at. I even have a code for people who want to get started with canvas.
26th Mar 2018, 9:11 PM
Zeke Williams
Zeke Williams - avatar
+ 1
Thanks @Zeke Williams I’ll take a look
28th Mar 2018, 2:38 PM
AClue
AClue - avatar