Sythius
07-03-2009, 02:17 PM
Right.
I'm making a game xD
What I have is a MC that on frame 5 or so has "_root.GUIwood = _root.GUIwood+1;"
But what I want to do is spawn it from the library once per click, but can be repeatedly done to gain several, I also don't want it on the stage.
This game is like a empire construction game. Food is one of the resources and I want to simulate the constant need to feed workers. so when a worker is made from the HQ, it gets added to the total number of workers available. (which is a var) but I want that worker to cause a constant decrease on the food resource. My problem is that I currently can only spawn one, at max.
My current code for doing so is this :
on (release) {
mc = _root.attachMovie("sym1", "sym1"+n, +n1);
mc._x = random(800);
mc._x = random(900);
mc._alpha = 50;
}
Any help? :D
I'm making a game xD
What I have is a MC that on frame 5 or so has "_root.GUIwood = _root.GUIwood+1;"
But what I want to do is spawn it from the library once per click, but can be repeatedly done to gain several, I also don't want it on the stage.
This game is like a empire construction game. Food is one of the resources and I want to simulate the constant need to feed workers. so when a worker is made from the HQ, it gets added to the total number of workers available. (which is a var) but I want that worker to cause a constant decrease on the food resource. My problem is that I currently can only spawn one, at max.
My current code for doing so is this :
on (release) {
mc = _root.attachMovie("sym1", "sym1"+n, +n1);
mc._x = random(800);
mc._x = random(900);
mc._alpha = 50;
}
Any help? :D