I've been having a hard time spawning a projectile exactly at the source's location. What I was trying to do is to spawn it directly at the center then make it move to the direction the source is facing. I was somehow able to get the desired result except when the source is situated between tiles.
Here's a preview:
Centered on a tile

and then the problem...

Here's how it should look like:

It's basically using its iris as a projectile.
I'm simply spawning the projectile at the source's location through:
obj/projectile
New(shooter)
loc = locate(shooter.x,shooter.y, shooter.z)
I know there are a lot of libraries out there that handles projectiles but I sort of find them a little bit complicated to understand at times. What I am trying to achieve is a simple system.
I would greatly appreciate it if someone could help me out with this issue.
Thanks in advance!
Once you install that library and link it to your project, all you need to do is:
This makes sure the projectile is centered relative to source's bounding box no matter where they are. From there you can do whatever you want.