Hi,
When instantiating the candy sprite at the cannon’s “projectile” point, it doesn’t instantiate correctly, resulting in several errors.
How can I achieve this job?
thanks
It does
Your points are just wrong
Go to candy points and move origin point to center of candy
Hi @SaeedP - i just tried quickly doing something similar in a project…
it did work fine and the only thing i can think of, (if your candy origin is in the center - which as zero says would have explained it) - is it a layers issue? …is the cannon on the ‘elements’ layer. see below the yellow spot in the middle is the cursor click!

If you increase the size and radius of the objects, you may encounter some problems.
Did you find anything specific in my post’s images, code, and the game?
The post illustrates the projectile’s origin and the candy’s 30-unit radius.
I do not know your ball’s radius.
You are right.
Thanks