External Exam Download Resources Web Applications Games Recycle Bin

Animation Basics

1. draw a sprSiren with 2 frames of animation, 1 frame blue siren and 1 frame red siren:

2. draw a sprMute which is a muted siren, it is the same siren but greyed out (muted), only 1 frame of animation this time:

3. put an objSiren into the room, it has sprSiren as its default sprite:

4. on the objSiren Create event, freeze the sprite animation on the first frame:

5. on the objSiren Left mouse button click event, play the siren animation (siren should flash now if i click on it):

6. if i hit spacebar, mute the siren:

Extension Questions:

  1. can you add another button that can freeze and unfreeze the siren animation (red blue flashing?)
  2. can you add another button that can unmute the siren animation? (so switch the Sprite from sprMute back to sprSiren)