Flasher Archive

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


Subject: RE: FLASH: Help! My game gun is shooting blanks...
From: Paul Willoughby
Date: Mon, 16 Oct 2000 16:45:08 +0100

Couple of things about your code look a bit weird John, for starters...

> (inside the button itself there's an Up state, a Down state
> with a gun sound
> attached, and no Over or Hit state)...

How do you mean no hit state? If there is no keyframe in the 'hit' frame the
hit state will be whatever was in the 'down' state frame. If you have a
blank keyframe in the 'hit' state the button will do nothing as it has no
hit area.

> On (Release)
> If (GetProperty("",_droptarget) eq "/Duck MC instance name")
> Begin Tell Target ("/Duck MC instance name")
> Play
> End Tell Target
> End If
> End On

You can't evaluate the _droptarget property without having stopped a drag
first, normally like this:

On (Release)
Stop Drag
If (GetProperty("",_droptarget) eq "/Duck MC instance name") etc etc.

Is that included in your code somewhere? Anyway, your method seems a little
over complex. Wouldn't it be better to put an invisible button on your duck
and then kill it if the user manages to press it. There's no need for
dragging and dropping targets for a simple shooter like this.

hth

paul

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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