My missiles don't collide with the asteroids :(

I will remove the timer then.

I figured out the source of the crash. I was getting a crash log, but Corona quit way too fast for me to see it. I recorded my screen and I see the error:

local explosionData = {name = "explosion", start = explosionInfo:getFrameIndex("thruster1"), count = 8, time = 350, loopCount = 1} | | | V start = explosionInfo:getFrameIndex("thruster1") -- Wrong starting index start = explosionInfo:getFrameIndex("explosion1") -- Right starting index

Anyways, that’s done, but my explosions do not appear where I want them to be. They should be appearing where the asteroids are, but they appear somewhere else.

https://youtu.be/12BTRC0cuHc

Check on your creation code and be sure you’re passing in x, y positions.  Verify them by printing out the ship position in the collision code, then x,y in the explosion creation code.

Just go step by step and print out values that are pertinent to this to the console.  By doing this you will likely find the issue.

Make sure you’re adding the explosion to a group.  Also be sure that group is in your camera hierarchy and not at world level or below, otherwise it will be offset.

That was it, forgot to add it to the group.  :stuck_out_tongue: