Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do This Use the visible property inside an if ( statement to make the balloon pop when it hits the edge of the game area!
Do This Use the visible property inside an if ( statement to make the balloon pop when it hits the edge of the game area! 1. Create a pop sprite which uses the "pop" visual in the animation tab. 2. Set the pop sprite to be hidden at the beginning. World Drawing Math Toolbox var sprite sprite.x sprite y sprite.scale sprite.setAnimation (label) sprite height sprite.width Sprites Control Variables createSprite enrita inilal 1 createSprite (200, 200) 2 balloon.setAnimation ("balloon"); 3 4 5 6 7 8 00 9 10 11 12 23 13 var balloon balloon.scale 0.1; Workspace 1) Create a pop sprite which uses the "pop" visual in the animation tab. //2) Set the pop sprite to be hidden at the beginning. Debug Console 14 function draw() // Draw Background background("white"); Debug Sprites: Off Version History Clear Show Te Watchers Variable Property +
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started