Tutorials Books Videos Forums

Change the theme! Search!
Rambo ftw!

Customize Theme


Color

Background


Done

Basic Movement: Example

by kirupa   | filed under Flash and ActionScript

So really, with the foundation I've created so far in the previous tutorials, there's no problem at all in translating basic movement in Flash to an isometric plane. Just code normally, then, when positioning on the screen, use the toScreen methods to translate an 'isometric' position correctly on the screen.

Along with this, toIso can be used to find out the position of the Clip on the screen and ultimately the grid space it occupies acting as a rudimentary hitTest.

See example:


Since this one has been lingering around since I made it, I am not sure if it uses anything new from what was previously discussed. If so, it'd be pretty basic and comprehendible or else I think I would have taken note to write more about it then (which I don't think I did!)

Oh, pressing and holding the mouse will allow you to control the direction of the ball a la diablo!

Download FLA

If you are interested in seeing how the above animation was done, feel free to download the source file.

Senocular

 

Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.

Your support keeps this site going! 😇

Kirupa's signature!

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright KIRUPA 2026 //--