I promised I’d introduced artificial intelligence in a racing game, and I am starting with artificial stupidity. Anyway, I managed the car to somehow run around the track. I said “stupidity” but I should have said “blindness”, because the CPU driver is actually blind. How would you react if you were blind and crazy enough …
Read all posts about "Racing" gameFlash
One AS3 DisplayObject method I don’t see that much used since AS2 became obsolete is localToGlobal. Now I’ll show you how useful can be this method when it’s time to save coding time. First, the definition: localToGlobal(point:Point):Point Converts the point object from the display object’s (local) coordinates to the Stage (global) coordinates. Let’s see what …
In most cases, when you design a Flash game the main screen is the last thing you add to your project. This way, sometimes you may forget to include a feature or two because you want your game to be released into the wild. Since you shouldn’t understimate the main screen (all in all it’s …
The porting of the most popular AS2 tutorials continues with a basic AS3 version of the Flash racing game script. I said “basic” because it does not have all features, this time it covers only movement and collision detection because I want to add more features before polishing it. In the detail, I am developing …
Read all posts about "Racing" gameIn this 4th step we’ll cover one-way doors. One-way doors are tiles the hero can walk only once, before they become unwalkable. First, let me show you a fix to the script shown in step 3. In the example, the loot disappears when the hero sees it, he does not have to touch it. Since …
Read all posts about "Talesworth Adventure" gameFrom Wikipedia: The Levenshtein distance between two strings is defined as the minimum number of edits needed to transform one string into the other, with the allowable edit operations being insertion, deletion, or substitution of a single character. In real world, one of the most common uses of this distance is the suggestion Google throws …
I receive almost daily requests to port the old AS2 survival horror game in AS3, so here it is. Since it was an easy conversion, I decided to add two features: * Adjustable torch power using keys 1 and 2 * A flicker variable to set torch flickering rate (0-100) So we can also have …
Read all posts about "Survival Horror" gameOne of the main features of Talesworth is the hero keeps running according to his rules until he spots a loot. Then he changes its way to grab the loot. In part 1 I showed you how to make the hero walk like in the original game, and in part 2 I introduced the line …
Read all posts about "Talesworth Adventure" gameAs you can see if you play Talesworth, your hero will keep on running according to the same rules “run straight until you hit a wall, then turn right by 90° until you find a walkable tile, and keep on running” unless he sees a loot. If the hero sees a loot, he changes the …
Read all posts about "Talesworth Adventure" gameRecently I got addicted to Talesworth. It’s a great tile based puzzle game with 30 levels I recommend you to play, but it’s also a game I am recreating with a tutorial series. So let’s start… since it’s a tile based game, the barebones are very similar to Create a Flash game like Rebuild Chile. …
Read all posts about "Talesworth Adventure" game