Macromedia Director Help

Joined
Nov 27, 2004
Messages
445
Reaction score
23
Points
18
Location
Yorkshire, UK
Your Mac's Specs
20" iMac | iPhone 4
Hey there,

I’m currently making part of a game using Macromedia Director MX2004 for one of my university briefs and am a little stuck :(

I'm trying to make a simple shooting level that revolves around a moving scope, the scopes registry point is where the cross hairs meet obviously, and I want the code to take off a certain amount of "health" from the target if the user hits it.

The code I am using is as follows:

"global gHealth, gArmour

on mouseDown me
if member("scope").regPoint = <<THIS IS WHERE I AM STUCK>> then
put "HIT"
gArmour = gArmour - 50
end if
end"

I don't know if that is right at all as I basically want to tell it that if the horizontal location of the scope (from the reg point) is between 93 and 98 take off 50 from the property gArmour.

Can any genius here help me?

I would love you forever (in a nice way lol) if you can, or at least point me in the direction of a good website or two (such as flashkit for using flash).

Regards,

Chris. :mac:
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top