Multimedia
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignMultimedia

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 25th, 2004, 12:54 PM
farmerito farmerito is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 2 farmerito User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hitTest problem

Hi there,

I have a ball rotating in a circle. It passes symbols and this triggers a sound. The sound is a short percussive sound. I am using the standard hitTest code

if (this.hitTest("symbolName")){

It seems to work to an extent.

The problem is that because the ball is smaller than the symbols, the sound is triggered several times as it passes over them. I only want the sound to trigger once (preferrably when it meets the centre of the symbol).

Can I set the point of collision? Or is my only option to make the sound longer so once it plays it won't play again until ball has passed outside the symbol?

Any ideas?

Cheers!

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignMultimedia > hitTest problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway