Wednesday, July 18th, 2012
A few friends and I have been working on a game together for the last few weeks. Everything was going well at first, but then we ran into a major snag: bullets were colliding with the ground when they clearly shouldn't have been. We are using Flixel and FlxWeapon from the Flixel Power Tools and we would see the issue pop up only on uneven terrain. If we changed our map to a basic, flat piece then everything worked as expected. However, introducing varying height platforms in the map would cause the issue. The image below demonstrates the problem.

(more...)
Tags: ActionScript 3, bug, bullet, collision, fix, Flixel, ground, problem, tilemap
Posted in ActionScript 3, Gaming, Tricks | No Comments »
Friday, November 18th, 2011
One of the most common tasks in Flash game development is calculating angles. This becomes important in even simple 2D games such as shooters where the player can fire bullets in all directions. If you're anything like me, you're probably not very good with math. I typically will find other ways to get the job done, and indeed I had my own way for figuring bullet paths, but eventually I decided to use real angles and I'm pleased to say it really isn't that bad. (more...)
Tags: ActionScript, ActionScript 3, angle, angles, bullet, calculating, development, Flash, game, math, move
Posted in ActionScript 3, Flash CS4, Flash CS5, Flash CS5.5, Gaming, Tutorials | 3 Comments »