How to do this without family behaviors

Get help using Construct 2

Post » Wed May 02, 2012 8:53 pm

I have about 20 sprites with a drag and drop behavior. Ideally, I will probably have more than 100. Think refrigerator magnets. I want to switch between them being movable or not. Right now, I am turning off drag and drop for all of them individually with a button press that changes a flag. Wondering if I should put this on hold until there is family behaviors or if there is some easy way to do this that I don't know. Thanks for any help!
B
34
S
4
G
8
Posts: 67
Reputation: 5,857

Post » Wed May 02, 2012 9:07 pm

Make them all frames of the same object?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed May 02, 2012 10:52 pm

I think that will probably work. Thanks, I'll try it.
B
34
S
4
G
8
Posts: 67
Reputation: 5,857

Post » Thu May 03, 2012 1:58 am

Wow I think this just solved my issue of Health Bar's and different enemies... Nice lol. Thanks @sqiddster

From reading this, to my logic I can have different animations/frames named after different enemies, and when they are created/spawned, have their stats changed accordingly. Cool thanks :)
B
26
S
5
G
5
Posts: 98
Reputation: 4,734

Post » Thu May 03, 2012 2:29 am

Yes, this really is what you should do when your objects are very similar.
You could also implement separate animations instead of just frames.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to How do I....?

Who is online

Users browsing this forum: benajad, R0J0hound, shinkan and 18 guests