ID:1898206
 
(See the best response by Ter13.)
Code:
step_x=Ref.step_x - (Ref.bound_width-src.bound_width)/2 - src.bound_x + X//(x is pixel off set)

//ref being the mobs and src being the projectiles


Problem description: I'm trying to center a projectiles step_X with a mobs but somethings off, I've been trying for quite some time and still can't figure it out. Hoping someone can help.

I've fixed the library where this comes from. New version incoming via PM.
Best response
But to answer the question:

step_x = Ref.step_x + (Ref.bound_width-bound_width)/2 - bound_x + Ref.bound_x + X