# Hittest problem

**URL:** <https://forum.kirupa.com/t/hittest-problem/160190>\
**Category:** Uncategorized\
**Created:** [August 24, 2005, 1:41am UTC](https://forum.kirupa.com/t/hittest-problem/160190 "2005-08-24T01:41:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icehawk](https://avatars.discourse-cdn.com/v4/letter/i/51bf81/32.png) [@Icehawk](https://forum.kirupa.com/u/Icehawk)\
**Post date:** [August 24, 2005, 1:41am UTC](https://forum.kirupa.com/t/hittest-problem/160190/1 "2005-08-24T01:41:16Z")

</div>

[size=1]hi everybody im starting to make yet another game… i have 2 in progress now.[/size]  
[size=1]my actions script isnt working think ne 1 can help out[/size]  
[size=1] [/size]  
[size=1]STUFF with ??? around it IS TO EXPLAIN ITS NOT IN CODE[/size]  
[size=1] [/size]  
[size=1]this is what i got[/size]  
[size=1]actionscriptlayer has[/size]  
[size=1] [/size]  
[size=1]stop();[/size]  
[size=1]Mouse.hide();[/size]  
[size=1]startDrag(“swat”, true); [/size]  
[size=1] [/size]  
[size=1]making my mouse into a swat sword[/size]  
[size=1] [/size]  
[size=1]then i have this code on my swat sword [/size]  
[size=1] [/size]  
[size=1]on (release) {[/size]  
[size=1]if (\_root.swat.hitTest(\_root.fly)) { ??? fly is the object i want to hit[/size]  
[size=1]\_root.score = \_root.kills+10; ??? this adds +10 pts to the score board[/size]  
[size=1]\_root.kills = \_root.kills+1; ??? this adds +1 pts to the kill count[/size]  
[size=1]}[/size]  
[size=1]}[/size]  
[size=1] [/size]  
[size=1]i have the istance names on dynamic text … none of my code is working yet it should[/size]
