[Solved] How do I "reuse" some events in another layout?

Get help using Construct 2

Post » Wed Jul 30, 2014 3:38 pm

Hello Everyone,

A quick doubt, how can i reutilize events like "player movement" and "player animations"?
Is necessary replicate those events to every eventsheet?

i.e
Code: Select all
Layout 1
EventSheet1
    Keyboard On keydown LeftArrow
       Player Set Mirrored
       Player Set Animation "Walking"
    [...]


Layout2
EventSheet2
@Import Events From EventSheet1 (???)


Is It possible somehow?

Thanks
Last edited by blinkn on Wed Jul 30, 2014 3:52 pm, edited 1 time in total.
B
8
Posts: 20
Reputation: 302

Post » Wed Jul 30, 2014 3:47 pm

You can reuse a whole event sheet just by setting the event sheet attribute of the layout to use the same event sheet from other layout.

https://www.scirra.com/manual/121/event-sheets

In case you only want to use some events, I'd suggest you group them and activate or deactivate the groups for specific layouts.

You can also use includes...

https://www.scirra.com/manual/82/includes

Cheers,
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
21
S
6
G
3
Posts: 662
Reputation: 3,851

Post » Wed Jul 30, 2014 3:52 pm

brunopalermo wrote:You can reuse a whole event sheet just by setting the event sheet attribute of the layout to use the same event sheet from other layout.

https://www.scirra.com/manual/121/event-sheets

In case you only want to use some events, I'd suggest you group them and activate or deactivate the groups for specific layouts.

You can also use includes...

https://www.scirra.com/manual/82/includes

Cheers,


Wow, just what i wanted, thanks!
B
8
Posts: 20
Reputation: 302

Post » Wed Jul 30, 2014 3:56 pm

:)
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
21
S
6
G
3
Posts: 662
Reputation: 3,851


Return to How do I....?

Who is online

Users browsing this forum: grigrizljac, NN81 and 6 guests