Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 3 of 3
  1. #1

    Default need hitTest help badly

    I am making a rhythm based game were colored orbs fall down from the top of the screen and you have to time your keystroke with the collision of the corresponding lettered boxes. One of my main problems is that I created a parent symbol of a rectangle tweening down the length of the song and placed the orbs inside of it. How do I create a hitTest of the orbs inside that symbol to individually score when they hit the lettered box on the stage. I am very new to AS 2.0 and am having to make this for a class project. Any help would be much appreciated.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    I am not sure but if orbs are position with a _x and a _y you can try experimenting with this code
    if (this.hitTest(_root.orbs._x, (_root.orbs._y, true ))
    { play(); }
    you need to add a code to the letter box movie clip also and make sure it is within the onClipEvent(enterFrame)
    Just my guess from reading info

  4. #3

    Default

    Thank you for this wonderful illustration

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial