Better version of my projectile code system Press space to spawn either a "shell" or a "fireball" Press D to show or hide debug variables Goomba will follow the mouse pointer - try making it collide with the projectiles This is a more advanced version of my original projectile code example, and the version that I have been using since Super Mario Scratched Revamped. Instead of using two variables to keep track of the position, it uses a list to hold all the entities' data. Pros of this system versus the other one: - Lets you have more than one projectile on screen - Lets you have different projectile types (for example, coins can be collected when touching koopa shells but not fireballs) Cons: - More complicated to add - Can possibly cause lag This one is definitely the better one to add to your projects if you know what you're doing - but if you're working with a simpler engine, use the original. It's way easier to work with.