Toggle disable: for includes and variable?

Discussion and feedback on Construct 2

Post » Fri Jan 06, 2012 10:06 am

Hey Scirra. It would be great if I can toggle the includes and variables just like the events and actions. Why is it not possible? Is there a reason for that?
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Fri Jan 06, 2012 12:31 pm

Hum I think it has to see with the structure of the project. (that's why, when you delete a global variable, it automaticly delete the events related/using this variable)
For example, if you'd toggle a gloabl variable, then any code relying on the use of that variable over the whole project would be somewhat discarded.

For includes, a workaround is to put the include in a group.
You can then toggle that group, enabling or disabling the inclusion.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Jan 06, 2012 3:15 pm

Good idea with the workaround. Good as always!
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Fri Jan 06, 2012 3:31 pm

It's more then a workaround, actually, as it may allow you, in a single event sheet, to decide what to include.

This is what I did in my current project, allowing to switch from a mechanic to another in a single layout.
(one side is a track editor, the other side is driving the car in the track we just made).

The user can switch back and forth, staying in a single layout, and accessing different HUD and actions according to the included event sheet.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Jan 06, 2012 3:42 pm

Cool. Like to see, when it is finished!
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Fri Jan 06, 2012 4:59 pm

It's far from finished, but I'll surely throw some beta tests/videos around along the way, don't worry.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests