I already talked about perfect mazes a couple of years ago with Step by step perfect maze generation with php and Perfect maze generation with Flash actionscript, but now it’s time to make it with AS3 and understand how can we use a perfect maze. Think about a perfect maze as a maze with no …
Read all posts about "Maze" gameActionscript 3
In previous part we added some gameplay, now it’s time to add timing. I recommend you to read Understanding AS3 Timer Class. I used time for two reasons: first, I want the player to collect as much coins as he can before a certain amount of time (to be defined), second to give the player …
This is ideally the next part after Understanding pixels and meters with Box2D and how to select an object with mouse – part 2, but it’s so important understanding how to drag objects with Box2D that I decided to change the title. Anyway, in this uncommented example (a commented one will follow) you can select …
A lot of time ago I wrote about AS2 time management in Flash simple timer/countdown. Now it’s time to see how to manage time with AS3. AS3 has its own class to manage time, the Timer class. You can read some documentation about this class in the official AS3 page, but in this test drive …
Ok, time to learn once for all how does Box2D manages object sizes, and how to set them right when working with AS3 In previous step I used a 90×90 pixel crate. The problem is Box2D does not works with pixels because it does not have a native pixel render engine. In other words, Box2D …
This will be the longest post title in blogging history… anyway I am about to explain you two things that seem to be still unclear about AS3 version of Box2D. The first one is Box2D measuring units that may seem weird until you realize Box2D works with meters where 1mt = 30 pixels. The second …
Once introduced the score in AS3 Flash game creation tutorial – part 4: score, it’s time to create some gameplay. The idea is to create a game like Collectabubble, just a bit more polished and with some more features. The first thing to introduce is the rotating bar, a movieclip called bar with bar.as class. …
In AS3 Flash game creation tutorial – part 3: walls I introduce some obstacles to kill the circle, now it’s time to make it earn some points when it collects the coins. As usual, I am creating a new movieclip called score with its score.as class. This is how score.as looks like: package { import …
Welcome to the 3rd step of this tutorial. It’s time to cover walls, or whatever you may call some fixed, deadly obstacles. Continuing on the OOP lane, the new object called wall has a class coded in a file called wall.as saved in the same path as the other ones. This is how we will …
In the previous step I showed you how to create a simple “move-the-ball” game using AS3 classes. Now it’s time to introduce some more elements… some coins to pick up. Obviously the coin must have its own class, called coin.as, saved in the same path as the other ones. This is the fully commented coin.as …