stage.set_background("schoolhallway")
victim = codesters.Sprite("kitten")
victim.go_to(-150, -100)
victim.move_right(150)
bully = codesters.Sprite("dog")
bully.go_to(-300, -75)
bully.set_size(2)
bully.move_right(200)
victim.turn_right(90)
bully.say("HAHAHAHAHAHAHAHA!")
stage.wait(.5)
victim.turn_left(90)
victim.move_right(400)
stage.remove_sprite(bully)
stage.set_background("houseinterior")
victim.go_to(-175, -100)
mommycat = codesters.Sprite("cat")
mommycat.go_to(0, -100)
mommycat.say("How was school today?")
choice = mommycat.ask("Should the kitten tell mommy about the incident at school? Yes or No?")
if choice == "yes":
# add your code here
victim.say(" Dog pushed me at school.")
stage.wait(2)
mommycat.say("I have to call the principal then!")
stage.wait(2)
stage.remove_sprite(victim)
stage.remove_sprite(mommycat)
stage.set_background("tilewall")
principal = codesters.Sprite("panther")
principal.go_to(-175, -100)
principal.set_size(1.5)
victim = codesters.Sprite("kitten")
victim.go_to(50, -100)
bully = codesters.Sprite("dog")
bully.go_to(150, -100)
bully.flip_right_left()
bully.set_size(1.5)
principal.say(" Say sorry to kitten for pushing her over.")
stage.wait(2)
victim.say( "Sorry kitten...")
stage.remove_sprite(principal)
stage.wait(2)
victim.say("Friends?")
stage.wait(2)
victim.say(" Friends!")
stage.wait(2)
# text = codesters.Text("text", x, y, "color")
text = codesters.Text("The dog and the kitten then became BFFs!!!", 50, 200, "orange")
if choice == "no":
# add your code here
victim.say("I'm fine...")
stage.wait(2)
stage.remove_sprite(mommycat)
stage.remove_sprite(victim)
stage.set_background("schoolhallway")
victim = codesters.Sprite("kitten")
victim.go_to(-150,-100)
victim.move_right(150)
bully = codesters.Sprite("dog")
bully.go_to(-300, -75)
bully.set_size(2)
bully.move_right(200)
victim.turn_right(90)
victim.move_right(400)
stage.wait(2)
# text = codesters.Text("text", x, y, "color")
text = codesters.Text("And thus the cycle continues...", 100, 200, "purple")
-
Run Code
-
-
Stop Running Code
-
Show Chart
-
Show Console
-
Codesters How To (opens in a new tab)