Skip to content
← Back to Community
assignment 5: animation adhesive
Profile icon
ginafranco

so new to coding and only been doing it for a couple weeks, but this assignment is too stressful, can someone help me create a simple code to do this?

In this assignment, you will use all of the graphics commands you have learned to create an animated scene. Your program should have a clear theme and tell a story. You may pick any school-appropriate theme that you like.

The program must include a minimum of:

5 circles
5 polygons
5 line commands
2 for loops
1 global variable
You may wish to use the standard boilerplate code for simplegui graphics

Voters
Profile icon
JenesisKitchen
Profile icon
ginafranco
Comments
hotnewtop
Profile icon
AdCharity

I'd start here.

import simplegui def draw_handler(canvas): frame = simplegui.create_frame('Example', 600, 600) frame.set_canvas_background("Black")
Profile icon
ginafranco

not sure how to start this? i tried to run what you sent me and nothing happens
@AdCharity

Profile icon
AdCharity

@ginafranco well I assume you need to use tkinter so I just gave a simplegui starter I guess. Note: you need this kind of repl

image

Profile icon
AdCharity

@ginafranco plus idk if you've had any programming experience but that's a function... meaning it doesn't run unless you actually CALL it

Profile icon
ginafranco

no experience at all, its my 14 year old son being introduced to coding so we are trying to figure ou this assignment together. @AdCharity

Profile icon
AdCharity

@ginafranco welp I am very bad at python for starters... this project seems somewhat difficult for a beginner. Does your son understand simple programming "syntax"? Like how to declare a variable? Or how a loop functions?

Profile icon
ginafranco

i agree, he is a beginner and not sure why these assignments are being assigned but its part of a program Edhesive sponsored by amazon all work in online.
and this is one of the Unit 5 assignments. he did a loop assignment but he wont be able to start something from scratch. we are finding what we can online to help guide him. thank you for your time @AdCharity

Profile icon
SixBeeps

If it helps anything, here's how I'd approach this problem.
I'd start by making each "frame" of the animation its own function. If that hasn't been taught yet, that's fine. Next, in the main function (the one that gets called when you start the program, if Edhesive's language has one) draw each frame one-by-one with a delay in between each. Here's some pseudocode:

At the start of the program: Loop infinitely: Draw frame 1 Wait 100ms Draw frame 2 Wait 100ms Draw frame 3 Wait 100ms ... End loop End program
Profile icon
ginafranco
Profile icon
AdCharity

https://repl.it/@AdCharity/Help2 here's just an example...

image

Profile icon
ginafranco

i see the example. thanks.. we now need to figure our how to create the code [email protected]

Profile icon
ginafranco

i just ran the example, pretty neat.. [email protected]

Profile icon
ginafranco

no wonder, directions also tell him he will need to show his code and output to the teacher for grading by submitting a URL for your CodeSkulptor code or uploading a .py [email protected]

Profile icon
AdCharity

@ginafranco glad I helped (though I'm not great at python). Good luck.

Profile icon
SixBeeps

What language do you have to do this assignment in?

Profile icon
ginafranco

I believe it’s python [email protected]

We are
Using edhesive program sponsored by amazon

Profile icon
ginafranco

If you can help me would be greatly appreciated. I’m trying to help my 14 year old son
@niorg2606