Can I set a sprite animation in the layout editor?

Get help using Construct 2

Post » Sun Apr 14, 2013 5:12 pm

Hey guys

In my game I have a sprite called "buttons" that has 5 different button types. I'd like to keep them all as one sprite so that they all get exported to a single sprite-sheet.

What I would like to do is have each button be its own animation, so I have "Back" with its own frames, "Close" with its own frames etc. The limitation I've run into though is that the editor will let me set a frame number in the properties, but not an animation type.



I can do this through events on startup, but it gets rather messy picking and setting several buttons and UI elements.

Is there a way to set an animation type through the editor, not just a frame number?
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Sun Apr 14, 2013 6:58 pm

Simple, make one object for each button...
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,192
Reputation: 18,276

Post » Sun Apr 14, 2013 7:02 pm

[QUOTE=TELLES0808] Simple, make one object for each button...[/QUOTE]

Warning : Bad puns

We need a simple button around here ... Whiteclaws2013-04-14 19:45:08
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Mon Apr 15, 2013 2:52 pm

Mmm, so I guess that's a no?

@Ashley - If this isn't possible at the moment, could this be added in? It would make managing sprite-sheets much easier.
B
24
S
4
G
1
Posts: 244
Reputation: 3,462

Post » Mon Apr 15, 2013 4:37 pm

I would also like to see the ability to set the default animation. It's easier to group certain elements together in one object, things like UIs or animated scenery.
B
56
S
20
G
7
Posts: 305
Reputation: 8,754


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests