hitTest

This is a discussion on "hitTest" within the Flash & Multimedia Forum section. This forum, and the thread "hitTest are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 20th, 2007, 20:09
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
hitTest

is there a problem with this code? because it doesn't seem to be executing the "if" statement even when it happens. This code is directly on the _root.bird movieclip.

Code: Select all
onClipEvent (enterFrame) {
    if (_root.bird, hitTest(_root.spaceship1.bullet_new)) {
        _root.text = "Collision Detected";
    } else {
        _root.text = "No Collision";
    }
}
Reply With Quote

  #2 (permalink)  
Old Sep 20th, 2007, 21:56
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
Re: hitTest

nevermind I fixed it
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
hitTest problem magnetica Flash & Multimedia Forum 1 Sep 3rd, 2007 23:03
HitTest - Tell an outside MovieClip to go to nextFrame() idelle Flash & Multimedia Forum 1 May 16th, 2007 22:20
HitTest issues Flashist Flash & Multimedia Forum 2 Feb 25th, 2007 03:03


All times are GMT. The time now is 20:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43