stage.set_background("hauntedhouseinterior") sprite1 = codesters.Sprite("evilwizard") q1 = sprite1.ask("How are you doing?") q1=q1 .lower() stage.remove_sprite(sprite1) if q1 == "good": sprite2 = codesters.Sprite("person1") sprite2.say("HI I'm good too!") stage.disable_floor() stage.wait(2) sprite2.say(" Good bye my dear fellow friend!") sprite2.move_down(500) else: # add your code here stage.set_background("drawbridge") sprite3 = codesters.Sprite("candy") sprite3.say("Mabye some candy will make you feel better!") sprite4 = codesters.Sprite("candycorn") sprite4.go_to(150,150) sprite4.say("Or you don't like candy???") stage.wait(3.5) stage.remove_sprite(sprite4) stage.remove_sprite(sprite3) stage.set_background("park") sprite5 = codesters.Sprite("cheerleader4") q2 = sprite5.ask("Can you do a flip?????") q2=q2 .lower() if q2 == "yes": # add your code here sprite5.say("WOW! Me too!!.") stage.wait(2) sprite5.turn_right(360) sprite5.turn_right(360) sprite5.turn_right(360) sprite5.turn_right(360) sprite5.turn_right(360) sprite5.turn_right(360) sprite5.turn_right(360) sprite5.turn_right(360) else: # add your code here sprite5.say("Lets learn!") stage.wait(2) sprite5.say(" So you jump and turn! Like this") stage.wait(3) sprite5.turn_right(2160) stage.wait(2) q3 = sprite5.ask("Is this fun") q3=q3 .lower() if q3 == "yes": # add your code here sprite5.say("Good!") else: # add your code here sprite5.say("That's too bad.")
Support