How is the example supposed to work
Partner, Software Development/General Manager at Persuasive Games. In his role, Mr. Quarto is responsible for software development and testing, as well as studio management and strategy.
Prior to joining to Persuasive Games, Mr. Quarto started his career in interactive entertainment as a freelance programmer using different object-oriented programming tools specifically specializing in Macromedia Flash, Shockwave, and Java development platforms among others. In 2002 Mr. Quarto co-founded Platico Games! in Buenos Aires, Argentina. While at Platico Games Studio, Mr. Quarto produced a wide variety of video game projects including: advergames, educational games, and multiplayer games oriented to big communities.
These games have been developed for clients such as: Claxson Interactive Group, Budweiser, Mattel, Turbo Video Brazil, Canal 13 (TV) Argentina, and FM HIT in Chile.Â
Quarto is currently teaching about Flash development, in an institute located in Buenos Aires. In his role as instructor, he teach how to develop webs and games, for online content.Â Personal Blog: http://www.alejandroquarto.com
First you should take a look to the final swf, if everything goes fine, you should be able to create something like this: (MOUSE and ARROW KEYS)
Note that if you use the mouse, it will work as a wind effect. It means: mouse will move the ball in the opposite direction that exists between the mouse and the ball.
If you are really near, force will be very high compared with a big distance.
Then, if you want to see how the ball move and bounce, you can use your keyboard and move it with the arrows keys.
Main idea behind this example is to introduce some physic criteria and forces. Every thing you do to move the ball is basically to apply a force to the ball. There are also external things like gravity, or friction.
Play a bit with the ball, if you like it, let's start with ActionScript.