Pin a new object

Get help using Construct 2

Post » Mon Mar 03, 2014 6:48 pm

I there, I have a sprite that I would like to act as a container of other objects, just for visual purposes. I'd like to create a new instance of a sprite and position it randomly in the container, x y and angle. Then pin it.

Is this possible? I added a Pin behaviour to one of the objects and attempted to pin it where it was but every object of that type pinned, rather than just one.
B
4
Posts: 20
Reputation: 242

Post » Mon Mar 03, 2014 10:06 pm

Yes that is possible.

The reason why every object is pinned is because, if you do not pick an object before you pin it, it will pin every object of that type. (there is a lot of information about picking in the [How do I]Frequently asked questions section (the top link in the how do i forum) )

So you need to pick the object before using the pin action on that object.

I have tried to create a small .capx to explain

https://dl.dropboxusercontent.com/u/2560922/mobiledev/forum/pinOneOrAll.capx

If that does not clear it up for you please do not hesitate to ask further questions.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Tue Mar 04, 2014 9:45 am

thanks that's much appreciated :)
B
4
Posts: 20
Reputation: 242


Return to How do I....?

Who is online

Users browsing this forum: Artcadev and 31 guests