Be a Supporter!

invisible movie clips. {as3}

  • 325 Views
  • 2 Replies
New Topic Respond to this Topic
ronk
ronk
  • Member since: Dec. 23, 2007
  • Offline.
Forum Stats
Member
Level 13
Programmer
invisible movie clips. {as3} 2012-03-12 23:58:05 Reply

I'm trying to spawn different kinds of enemies, so i copy pasted then edited 2 different classes for each enemy. for some reason flash will only show the first kind of enemy, the other one is invisible. i had

trace(visible);

and that keeps returning true, even though the movie clip isn't showing in my swf.
has this happened to anyone else? if so, how can i fix it?

milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to invisible movie clips. {as3} 2012-03-13 03:27:59 Reply

We obviously cannot help without looking at the code you have.

Mattster
Mattster
  • Member since: Nov. 21, 2007
  • Offline.
Forum Stats
Member
Level 20
Game Developer
Response to invisible movie clips. {as3} 2012-03-13 09:58:42 Reply

At 9 hours ago, ronk wrote: I'm trying to spawn different kinds of enemies, so i copy pasted then edited 2 different classes for each enemy. for some reason flash will only show the first kind of enemy, the other one is invisible. i had

trace(visible);

and that keeps returning true, even though the movie clip isn't showing in my swf.
has this happened to anyone else? if so, how can i fix it?

It may be that you are instantiating the enemy, but not properly adding it to the stage where you can see it. But as milchreis said, we'd need to see the code in order to help.