Posts Tagged ‘collision’

Tutorial: Per Pixel Collision

Monday, September 28th, 2015

In this tutorial we will take a look at implementing per pixel collision detection. Resolving collisions at the pixel level offers more precision than traditional bounding box methods and allows for more advanced interactions. In this example, we'll be using it to move our character over some hilly terrain. If you want to peek ahead at the end result, check out the demo here. (more…)

Fix for Ground – Bullet Collision Bug in Flixel

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…)

Subscribe to RSS feed FGS5 Badge