shoot interval

Can nobody help? Haven’t fixed the problem yet. :frowning:

Poor boo! :’(

Things I would check or verify:

  1. that the graphic’s center matches the point you actually want to shoot from (e.g., if the graphic is asymmetrical);

  2. that the translational rotation is doing exactly what you think it is (you could be rotating around a different point than you are assuming);

  3. that the ‘context’ of the values used for drawing the shooter matches the ‘context’ used for the raygun path draw (the [x,y] invoked before an affine transform doesn’t necessarily match the position on the screen after the transform).

There are lots of ways to screw up, here. Verify all the steps.

Ah you stole those points right from my keyboard :stuck_out_tongue:

You actually were right with the second one.

Ive got so much code , that I totally didn’t see that I was using the x,y pos of the player and not the center, to calculate the angle.

Thanks :smiley:

So so tired.