# Totally stumped please look at my code

**URL:** <https://forum.kirupa.com/t/totally-stumped-please-look-at-my-code/186425>\
**Category:** Uncategorized\
**Created:** [April 21, 2006, 4:20am UTC](https://forum.kirupa.com/t/totally-stumped-please-look-at-my-code/186425 "2006-04-21T04:20:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [April 21, 2006, 4:20am UTC](https://forum.kirupa.com/t/totally-stumped-please-look-at-my-code/186425/1 "2006-04-21T04:20:03Z")

</div>

My code is horribly hard to follow i know …I tried to comment it but i didnt do a very good job…this movie is 100% as included are the include files and the FLA

Im trying to get the shot (see bullet1.as) to always line up with the circles it hits currently it usually does but sometimes the hit registers wrong(see myprototypes.as line 187)

all i want it to do is tween the hit on an ease out to whatever axis the targets are moving along

please help me Ive included everything i think you need…sorry its so muddled  
I have horrible coding etiquit…im sorry

Flas are located at  
[http://rapidshare.de/files/18541574/Square\_Spiral.fla.html](http://rapidshare.de/files/18541574/Square_Spiral.fla.html) \<–Flash 8  
[http://rapidshare.de/files/18541644/Square\_Spiral.mx.fla.html](http://rapidshare.de/files/18541644/Square_Spiral.mx.fla.html) \<–MX

Also included my sfw incase you just wanted to look quickly and see if you had some suggestions

anyway thanks for any help i can get 🙂

[edit] Messing around with the positioning of the MC’s in the Movieclip Perimiter will probably fix it…but i keep tweaking it…and i cant get it anyclosert than how it is now…I want to totally eliminate the erronious placing ☹

but id much rather if someone could tell me a better method…failing that maybe someone will have more luck tweaking the perimiter

---

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [April 21, 2006, 9:28pm UTC](https://forum.kirupa.com/t/totally-stumped-please-look-at-my-code/186425/2 "2006-04-21T21:28:46Z")

</div>

**B** egging  
**U** sers  
**M** ore  
**P** roficient than me

for help

---

<div class="post-metadata">

**Author:** ![cobrasniper555](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cobrasniper555](https://forum.kirupa.com/u/cobrasniper555)\
**Post date:** [April 22, 2006, 9:26pm UTC](https://forum.kirupa.com/t/totally-stumped-please-look-at-my-code/186425/3 "2006-04-22T21:26:30Z")

</div>

Sooo…are you just wanting to get your bullet to go to the target?

---

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [April 22, 2006, 9:56pm UTC](https://forum.kirupa.com/t/totally-stumped-please-look-at-my-code/186425/4 "2006-04-22T21:56:18Z")

</div>

i want the target to line up with the row/column of targets that the bullet hits

like

should be

Target Shot Target

but sometimes its

Target Target  
Shot

---

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [April 26, 2006, 4:22am UTC](https://forum.kirupa.com/t/totally-stumped-please-look-at-my-code/186425/5 "2006-04-26T04:22:39Z")

</div>

I still cant get the target to go where its supposed to about 50% of the time ☹
