|
-
file not found
checking for...
I was wondering how you would check during a hittest to see if what your hitting has a certain variable atatched to it.
Say, occasionally when I hit the mc "bob" he's happy, so bob.happy = true. but some time he's not, so bob.happy = false
How would I check for this during a hittest?
Am I being clear enough?
-
OOP is one letter from OOPS
for example
if(_root.bob.hitTest(_root.square)){
if(_root.bob.happy){
//if true do this
}else{
// if not do this
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|