# Canon and bullet problem

**URL:** <https://forum.kirupa.com/t/canon-and-bullet-problem/210573>\
**Category:** Uncategorized\
**Created:** [December 20, 2006, 1:52am UTC](https://forum.kirupa.com/t/canon-and-bullet-problem/210573 "2006-12-20T01:52:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rustyNails](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@rustyNails](https://forum.kirupa.com/u/rustyNails)\
**Post date:** [December 20, 2006, 1:52am UTC](https://forum.kirupa.com/t/canon-and-bullet-problem/210573/1 "2006-12-20T01:52:26Z")

</div>

hi,  
im trying to build a shooting game and i have a question.  
how can i get the effect of bullet emerging from the canon?  
i used to code it as bullet\_.x = canon._x and bullet_.y = canon.\_y so the bullet starts from the middle of the canon. if the canon moves in the meantimes it looks a bit odd.  
how can i make the bullet starts from the end of the canon, no matter where canon is at the moment???  
reg,  
rustyNails
