Forums

ForumsProgramming Forum

Variable isn't working.

Thread Locked

Posted May 26, '11 at 9:46pm

arobegamr

arobegamr

130 posts

In response to your removal problem, removeMovieClip() only works with clips created in actionscript, such as using the attachMovie() function.

As for your second problem, this is because you have multiple movie clips with the same instance name. You probably gave the first movie clip an instance name and then copied the clip, without changing it. But for what you are doing, you do not need an instance name at all, so leave the clips unnamed.

 

Posted May 27, '11 at 4:15am

Xinito

Xinito

111 posts

Thanks, will try that :D

 

Posted May 29, '11 at 11:53am

stijnhero

stijnhero

24 posts

try to separete bad and good on the dynamic text?

 

Posted May 31, '11 at 10:06pm

WhiskeyedJack

WhiskeyedJack

85 posts

You could always try attaching the instances of your coin movie clip, and holding a reference to each one in an array. If you have a predetermined set of coins, you would have to iterate through each manually and determine its placement. Otherwise you could randomly generate coins within a given set of parameters, then add it to an array with the push() function. If you want to see an example of what I mean, check out the Kongregate tutorial, especially sections 4 and 5 where they talk about adding enemies. You might be able to adapt it to what you are doing here.

 

Posted May 31, '11 at 10:10pm

WhiskeyedJack

WhiskeyedJack

85 posts

Just for clarification, the main page for that tutorial is at [url]http://www.kongregate.com/labs[/url].

 

Posted Jun 4, '11 at 4:41pm

Xinito

Xinito

111 posts

Gonna take a look there.

 

Posted Jun 10, '11 at 1:44am

11211998

11211998

10 posts

what if you can't seem to get your game an SWF and as if I know what that is

 

Posted Jun 10, '11 at 3:12pm

Xinito

Xinito

111 posts

What do you mean?

 

Posted Jan 11, '12 at 12:28pm

BlakeButler71

BlakeButler71

1 post

Yes try that.