Builder

I am Creating a builder where you have something selected and it puts it on the screen but i cannot get it to work i cna have one work but i can’t get it to attach mc’s based on the vars

Files

haha thats pretty cool… Im entertained by click things asdf11/1…
ummm… I’ll try and look I guess… only I cant now. Ill see it when I get the chance

I built a similar game, where you click on something and it moved to a set position. Instead of making buttons for everything, I cheated and used invisible buttons(draw only the hit frame). Heres the code for the button:
on (release) {
setProperty(this.instance, _x, “x value”);
setProperty(this.instance, _y, “y value”);
}

To find X and Y for the object I just put the object where I want it to go and take the values from the Property panel. Hope it helps.

I’m sorry for the delay but i had internet problems but how could i i set it so it does more than 1 version of those becuase it think sim theme park spin off would be kinda boring if you could only have 1 of each ride/shop.

Try something like this:

You could still have invisible buttons. Somewhere on your interface you choose what ride/booth you want to place. So, let’s say you choose a pizza shop. Have a variable called newattraction or something.

So you click on the pizza shop and it is now newattraction = “pizzashop”. In your library, obviously you have a movieclip called “pizzashop” or something. (remember to Link it for actionscript) Now, when you have this variable equal to “pizzashop” or whatever, when you click on the screen, spawn a new instance of the attraction you chose, and place it at the location of the invisiblebutton that you clicked.

That’s how I would do it anyways.

thats what this does except it won’t work. here are my fla’s i finally found out how to use attachments :beam: could anyone please help i tested my code against what he tried and i still cannot get it to run.