Dec-26-2020, 03:39 PM
Some comments here.
1. This part needs to be out of the shoot() function.
3. what does "projectile.clear()" do here? Probably should remove this line.
4. What is the window color? The default color is white. You set the color of projectile white. Is that the reason that you cannot see the projectile?
5. Needs border checking for personagem.
1. This part needs to be out of the shoot() function.
projectile = turtle.Turtle() projectile.speed(0) projectile.shape('square') projectile.color('white') projectile.shapesize(stretch_wid=0.25, stretch_len=0.25) projectile.penup()2. projectile.dy = 0.2 needs to be out of while loop
3. what does "projectile.clear()" do here? Probably should remove this line.
4. What is the window color? The default color is white. You set the color of projectile white. Is that the reason that you cannot see the projectile?
5. Needs border checking for personagem.