Simple Animation With Codebug

Introduction

CodeBug’s sprites can be shown one after another to create simple animations. These can bring your sprites to life by showing movement and progression.

Follow the sprite activity for more information about sprites.

You will need
CodeBug CodeBug
Micro USB cable
Computer
CR2032 battery

3 Questions
  • what? Will Lancaster @ July 25, 2018, 5:26 a.m.

    • What/ — damas5 @ Sept. 20, 2018, 4:55 a.m.

    • What/ — damas5 @ Sept. 20, 2018, 4:55 a.m.

    • What/ — damas5 @ Sept. 20, 2018, 4:55 a.m.

    • What/ — damas5 @ Sept. 20, 2018, 4:55 a.m.


    Answer this question:

  • SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS? Reanna Jade @ Oct. 25, 2016, 11:14 p.m.

    • YOU ARE DUM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! — kwadwo @ April 24, 2017, 3:23 p.m.

    • that's a good qestion — gpapid @ Sept. 8, 2017, 10:33 a.m.


    Answer this question:

  • -1

    who r u William Fraser @ Sept. 11, 2017, 11:42 p.m.

    • Will — Will Lancaster @ July 25, 2018, 5:26 a.m.


    Answer this question:

  • Ask a new question:

Designing your animation

It is best to plan out your animation so you know how many frames you want and to see how the animation should change over time. Print out this template and use a pencil to colour in which LEDs you want switched on. Try to think how it will look changing from one sprite to the next, but you can always tinker with it later once you see your animation on CodeBug.

Here is an example animation of a detonation plunger and explosion.


  • Ask a new question:

Writing your program

Now that your animation frames are ready, you can program up your bug. You will make CodeBug display your animation when a button is pressed. Follow the tutorial below.


  • Ask a new question:

What next?

Using the buttons and input legs on CodeBug, you could create a short interactive animation where, by playing different animations depending on which button is pressed, you allow the user to choose what happens next!


10 Questions
  • IS DREW AWESOME Drew Cameron @ Sept. 11, 2017, 11:42 p.m.

    • DREW IS SO AWEWOME — Drew Cameron @ Sept. 11, 2017, 11:42 p.m.

    • i agree — Zane Cornwell @ Sept. 11, 2017, 11:47 p.m.

    • i agree — Zane Cornwell @ Sept. 11, 2017, 11:47 p.m.


    Answer this question:

  • your face William Fraser @ Sept. 11, 2017, 11:43 p.m.


    Answer this question:

  • KYS William Fraser @ Sept. 11, 2017, 11:43 p.m.


    Answer this question:

  • WILL LIKES XAVIER Drew Cameron @ Sept. 11, 2017, 11:44 p.m.

    • THATS TRUE — Drew Cameron @ Sept. 11, 2017, 11:44 p.m.


    Answer this question:

  • HI ZANE William Fraser @ Sept. 11, 2017, 11:48 p.m.


    is that a question Zane Cornwell @ Sept. 11, 2017, 11:49 p.m.

    Answer this question:

  • how do i do this Zane Cornwell @ Sept. 11, 2017, 11:50 p.m.


    Answer this question:

  • DREW IS PHAT William Fraser @ Sept. 11, 2017, 11:44 p.m.

    • do you even know what phat means — Zane Cornwell @ Sept. 11, 2017, 11:47 p.m.


    Answer this question:

  • -1

    where do u live William Fraser @ Sept. 11, 2017, 11:42 p.m.

    • YOUR MUM — Drew Cameron @ Sept. 11, 2017, 11:43 p.m.

    • 100 phat sam street — Zane Cornwell @ Sept. 11, 2017, 11:48 p.m.


    Answer this question:

  • -1

    drew is sad William Fraser @ Sept. 11, 2017, 11:43 p.m.

    • Omg — damas5 @ Sept. 20, 2018, 5:02 a.m.


    Go to the button damas5 @ Sept. 20, 2018, 5:02 a.m.

    Answer this question:

  • -1

    drew is sad William Fraser @ Sept. 11, 2017, 11:43 p.m.

    • NO IM NOT — Drew Cameron @ Sept. 11, 2017, 11:43 p.m.


    Answer this question:

  • Ask a new question:

Back to top