Adding movement


show more Adding movement provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices show less
please wait ...

Adding movement

So let's take a look to see where this project is at currently. I want to go ahead and test this file. We have our intro, and when I click Play, you'll see lots of alien ships start to gather at the top of the screen, which does look intimidating. But at this point, you know what, I want them to basically attack, so I want these ships to start moving downward. And I'm going to do that by adding a code snippet.

So in the Code Snippets panel, right down in here, Move Enemies. Again, I want to move many different things. I'm just kind of go ahead and double-click on move enemies, and it adds this code right here. Now that is plural, so it's going to move a lot of things, but let's take a look at this specifics, okay. Now, this is a complete sort of code chunk, so you can use this in many different projects, because quite frankly, there is this reference to this array. Well, I already have an enemies array, but basically you need to make sure you have an enemies array...

Adding movement
Video duration: 4m 16s 3h 35m Intermediate

Viewers:

Adding movement provides you with in-depth training on Developer. Taught by Paul Trani as part of the Flash Professional CS5: Creating a Simple Game for Android Devices

please wait ...