This tutorial covers every step in programming a sling shot Flash game above. Use the mouse to pull down an object into the sling shot and try to launch it over the obstacle into the target. After programming the example project, we also look at including code to use with a mobile device’s accelerometer (tested on the Android & iPhone OS). Once you’ve worked through the tutorial, you should be able to:
– Add more levels
– Add multiple targets
– Add extra collision objects (like the scout character)
– Change the physics to make the slingshot more bouncy or increase the gravity.
You can find more details on the full course at Actionscript 3 Sling Shot Game Tutorial
All CartoonSmart tutorials include a downloadable version of the HD video file and source files from the course to use our same artwork and code.
Don’t forget to sign up for our newsletter (mailed once, maybe twice a month) to find out about new lessons or templates. You’ll find the sign up form at the bottom of most pages at CartoonSmart.com Enjoy the lesson!