Fast Loop Bullets

When using MMF2, you may have noticed that very occasionally your bullets will actually pass through other objects. For example, click and hold left mouse in the Flash window.

Collision detection is one of the most expensive operations in MMF's engine and to save on processing power, MMF2 moves launched objects in fixed pixel blocks and without checking for collisions inbetween. This is a problem when launching small objects at high speeds toward a thin wall or skinny enemy.

In the following tutorial, you will learn how to use fast loops to launch an object at any speed with pixel perfect collision detection.