PDA

View Full Version : problem with MCs



zepa
October 13th, 2010, 04:35 PM
Hello every1!!

I'm trying to make a platform, adventure game... but I have a problem (actually I have a lot xD) there any way to know what I'm interacting MC, without knowing her name or position? is because, according to the NPC will have a different reaction.

I have managed to attack and hurt and ends up dying. I tried putting a variable ID to each MC, but i dont know how to read from the MC of the main character ... So not much good to me xD

any help is welcome ^ ^

sorry if I have not explained well, English is not my best subject XD

I use Action script 2.0 x3

zepa
October 14th, 2010, 08:23 AM
I'll give an example, to make things easier xD

i got 3 MCs (Main_Char, Enemy1, Enemy2), and I need to know their instance names to avoid having to put in the code (_root.enemy1 ...), but with a variable, such as ID (_root.ID. ..) That I get from the enemy MC (ID).

Its this possible? :S