Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-05-2011, 11:41 PM   #1
j pearce
Registered User
Join Date: Oct 2010
Posts: 48
Default [AS2] looping & multiple hit testing efficiency

Hi, another few questions,
Firstly, I am currently using setIntervals to repeat functions over & over again but i'm not sure if this is the correct way to do it as there's a lag due to the amount of code. The only reason I have used this is that it is the only way I know how to loop.

Secondly, whats the best way of making vast numbers of potential hit tests whilst still knowing exactly which objects have been hit? Basically, the game i'm making is a navy shooter game where ships can collide with other ships, enemy & user torpedoes can hit scenery, other enemies or other user controlled allied ships, as well as all of the individual torpedoes in the water too. I can't just stick all of them in 1 MC as it would lose track of which torpedo has to explode & which ship to lose health etc etc.

Many thanks once again,

Last edited by j pearce; 08-05-2011 at 11:45 PM. Reason: typo
j pearce is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 07:13 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.