from random import randint, random
stage.set_background("summer")
address = "https://www.mariowiki.com/images/thumb/0/07/Kirby_SSBU.png/250px-Kirby_SSBU.png"
all_kirbys = [ ] # empty list
for i in range(10):
random_x = randint(-200, 200)
random_y = randint(-200, 200)
me = codesters.Sprite(address, random_x, random_y)
all_kirbys.append(me)
for sprite in all_kirbys:
sprite.set_size(random())
-
Run Code
-
-
Stop Running Code
-
Show Chart
-
Show Console
-
Codesters How To (opens in a new tab)