only change the behavior on one instance

Get help using Construct 2

Post » Thu Jan 24, 2013 3:03 am

i got a sprite, with instances on multiple layouts, as well as multiple instances on a given layout. on a layout i need one instance to have anchored behavior whilst the other instance of said sprite should not be anchored. when i select one instance and add or remove the behavior, it also changes the others. Can this be avoided?
B
22
S
7
G
3
Posts: 41
Reputation: 2,751

Post » Thu Jan 24, 2013 12:43 pm

You can either have a behavior on object or not, there is no way to have separate versions of the same object. Doesn't really make sense when you read that sentence, huh? :)

What you can do, is disable/enable the anchor behavior on sprites you wish via events.

Add an event like this:

On start of layout
Pick the free moving sprite
     Set Sprite Anchor disabled
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Fri Jan 25, 2013 2:34 pm

i already made a new set of objects to solve my problem, but did not want to go that rout. Thanks for the knowledge.
B
22
S
7
G
3
Posts: 41
Reputation: 2,751


Return to How do I....?

Who is online

Users browsing this forum: austinblackbelt, Matthew de and 4 guests