Interactive Animations and Games 18.1

Can anyone tell me the code that made this sample interactive card?

Interactive games and animation lesson 18 level 1

Hi @jwalsh1 ,

That is a fun card. There are a few things going to but I think if you break it down it involves:

  • a user action (like mouseIsOver)
  • a sprite property reaction using a random number
  • all of this in the draw loop so the event is always being checked to see if it is happening.

Here is a sample project to show the basics. I hope it helps:)

~Michelle