Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Get Property in Specifice Frame |
From: | Cheri Harder |
Date: | Tue, 25 Jan 2000 20:45:55 GMT |
Re-reading your question, I think you are concerned with the "where will
THAT mc be at frame 4 of THIS mc" and you don't need to be. I will try to
explain....
You don't name your mc at a particular frame. You name the mc for that
timeline, that is, it is the same "instance" name throughout. Then, at any
point you want to check, you go get the x position of that mc, wherever it
is at the time your are checking it.
We will go to frame 4 of your "Hand" mc. For our purposes, this frame
doesn't need a label. We will add the following pseudo-action (that is, I
haven't checked the exact syntax, just giving you the idea.) This action
goes in the frame, not on a button.
Set Variable "WhereAmI" = GetProperty("/GuyOne/Hand",_x)
Set Variable "WhereAreThey" = GetProperty("/OtherGuy/Face",_x)
IF WhereAmI = WhereAreThey
We have contact! Your code here to splatter face.
End if
Does this make sense? You'll still need to figure out how to tell whether
there is actual contact, which you can get from Colin's tutorials...I just
wanted to try to clarify my prior statement that you don't "go get the
property at frame 4" rather you "at frame 4, go get the property"
Hope that makes sense!
~~~~Cheri Harder~~~~~
charderawsolution [dot] com
Advantage Web Solution
"Developing your internet storefront"
www.awsolution.com
----- Original Message -----
From: "Larry Eisenstein" <larryapollo-ent [dot] com>
To: <flasherchinwag [dot] com>
Sent: Tuesday, January 25, 2000 10:12 AM
Subject: RE: FLASH: Get Property in Specifice Frame
> Hi All,
>
> Thanks Cheri, I'm still having problems
> I think I didn't make it very clear what
> I was trying to do...so here goes.
>
> Parent MC "GuyOne" has a child MC "Hand"
> In MC "Hand", frame 4 (labeled 'Punch'),
> I placed a graphic symbol 'RightHand'.
> I changed 'RightHand's behaviour to MC.
> I named the instance "RightHandPunch".
>
> I want to get the x position property
> of "GuyOne/Hand/RightHandPunch" when
> frame 4, (labeled 'Punch')is played.
>
> I then want to compare this property
> with the position of other MC's on the
> stage. Some even embedded in
> other MC's like the above.
>
> I tried some of your suggestions but
> remain confused. Should I abandon turning
> the graphic symbols in specific frames
> into MC's. Or is this the way to get their
> properties to make comparisons and then
> issue Tell Target commands.
>
> I need this type of collision detection
> power to make my game work.
>
> Thanks for your help, Sorry If I'm asking
> you to repeat yourself.
> Larry
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
RE: FLASH: Get Property in Specifice Fra, Larry Eisenstein
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]