stage.set_background("scrollingunderwater") bubbles = codesters.Sprite("bubbles") bubbles.go_to(0, -100) bubbles.say("Hi there, im Bubbles, and this is my home, the ocean!") stage.wait(2) bubbles.glide_to(100,0) q1 = bubbles.ask("Do you like the ocean?") if q1 == "yes": # add your code here bubbles.glide_to(0, -100) bubbles.say("Me too! It's my favorite place in the world!") stage.wait(3) bubbles.turn_right(360) else: # add your code here bubbles.say("If you don't like land then that's ok! I can also go on land.") bubbles.glide_to(0, -100) stage.wait(3) bubbles.say("Maybe we can go check out the land!") q2 = bubbles.ask("Do you want to go check out the land?") if q2 == "yes": # add your code here bubbles.say("Sweet! Lets GOOO!") stage.wait(1) bubbles.glide_to(0,500) else: # add your code here bubbles.say("C'mon, let's go it'll be fun!") stage.wait(2) bubbles.glide_to(0,500) stage.set_background("city") bubbles.go_to(0,-450) bubbles.glide_to(0,-100) bubbles.say("Alright, we made it to land!") stage.wait(3) q3 = bubbles.ask("Do you want to go take a look around?") if q3 == "yes": # add your code here bubbles.say("Alright, let's go take a look!") stage.wait(2) stage.set_background("footballfield") bubbles.glide_to(0,-100) bubbles.say("This is the football field where the Kansas City Cheifs play their home games.") stage.wait(5) bubbles.say("Thanks for stopping by! I hope you enjoyed!") else: # add your code here bubbles.go_to(-500,0) stage.set_background("scrollingunderwater") bubbles.go_to(500,0) bubbles.glide_to(0,-100) bubbles.say("Thanks for stopping by! I hope you enjoyed!")
Support