Animation glitches
If your sketch is acting erratically, eg target moves faster after projectile launches:
đ Check your placement of push() and pop(). Is the latter missing?
đ You could have redundant code for positioning so it goes twice as fast and far, eg:
translate(x, y);
ellipse(x, y, 100)
â ī¸ x and y are additive and subtractive, but scale() takes a ratio, eg:
// This will move the rectangle 2 pixels to the right.
translateX( 2 )
rect( ... );
// This will double the size of the rectangle.
scale( 2 )
rect( ... );