Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Actionscript problem
From: Karin Christensen
Date: Tue, 5 Oct 1999 21:46:15 +0100

I am trying to finish a target shooting game but cannot solve a
scoring problem. I have a round target centered in a larger
rectangular target. I want to give a higher score if the hit is in
the circle and a lower score if outside the circle. I thought I was
going to be really clever and use a circular movie clip then use
GetProperty of _target similar to using a _droptarget. Except that
it isn't working. I get the high score if I use and = sign and the
low score if I use eq, no matter where the hit is.

This almost works, but I get only the high score (replacing the = with
eq results in the low score):

If (GetProperty ("/result/hit",_target) = "/result/circle")
Set Variable: "ascore" = 10 - (shots -1)
Else
Set Variable: "ascore" = 7 - (shots -1)
End If
End If

I have tried setting a variable but get more or less the same result.
I've also tried using _name. Any ideas??

Karin


------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratchinwag [dot] com. Problems to: helpatchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratchinwag [dot] com


Replies
  Re: FLASH: Actionscript problem, John Croteau

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]