| In this tutorial, we will learn how to use one of the most popular animation features in Kwik 2, game physics (also know as simulation physics). We can use Kwik to create a next-to-life environment where the object on the page responds to aspects of this environment such as gravity, force and collisions.|
In our sample app, we will use gravity to make an object fall down the page as soon as the page loads. If the reader does not interact with the object, it will continue to fall until it hits the bottom of the page. When it collides with the bottom it will bounce and then come to a halt. However, if the reader clicks and drags the object, it will respond to that force and move in the direction of the drag. Once it has come to a halt from that force, it will again continue to fall from its new position on the page.
This may sound quite complicated but Kwik makes it easy for the non programmer. Our first step is to set up the physics environment and then tell the object, a pocket watch, how to interact within this environment.
Open your project into Photoshop.
Click on the Export Current Page Only icon and the Publish button to test your animation.
Go to your LearnKwik folder and make a backup copy of the Template project folder. Rename the backup folder by adding the current date to the end. (TemplateMM-DD-YY).
Join us in the Flash forum. | Join us in the Digital Art and Design forum.