Code from 1 layout usable in another?

Get help using Construct 2

Post » Mon May 12, 2014 12:22 pm

Hello,

Well I wasn't sure as to what may I need to search to hit upon my requirement, however all that I found didn't seem matching either.. I may surely be missing something, so thought of asking directly.. So basically, I'm working in different layouts currently, and would like to know as to how can I make the code from Layout 1 - Event Sheet 1 applicable to all the different Layouts.. ex :

I've added a Crouch control behavior in the Layout 1 - Event Sheet 1. After player moves into Layout 2, I want him to keep using the behavior he gained from Event Sheet 1 and not instead rely on the code appearing in Event Sheet 2.

Please re-direct me if needed to another thread or something similar..

Thanks in advance :)
B
3
Posts: 6
Reputation: 287

Post » Mon May 12, 2014 12:37 pm

You can include event sheets: https://www.scirra.com/manual/82/includes
Image
B
96
S
36
G
17
Posts: 351
Reputation: 15,903

Post » Mon May 12, 2014 3:53 pm

Hi,

I am using event sheets.. different event sheets for different layouts.. thing is everytime I want to repeat the moves on any other level, I have to keep copying the code there.. I am not sure if I am being clear.. need I elaborate more? Let me know..
B
3
Posts: 6
Reputation: 287

Post » Mon May 12, 2014 4:00 pm

Ooohhh having read your link, it kinda makes sense.. just need to try this out.. :) thanks for the help.. shall post back if this actually takes care of my issue :)
B
3
Posts: 6
Reputation: 287

Post » Tue May 13, 2014 6:19 am

Ok, no prob! In my opinion it's best to make one "universal" event sheet where all the events that are relevant to all layouts run. Then it's easy to include that one to all the other where different events are needed.
Image
B
96
S
36
G
17
Posts: 351
Reputation: 15,903

Post » Wed May 14, 2014 4:12 am

I completely see your point.. and this is indeed quiet helpful.. much appreciated! Might re-structure my complete project :P
B
3
Posts: 6
Reputation: 287


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 56 guests