Confine certain functions to certain event sheets ?

Discussion and feedback on Construct 2

Post » Sat Feb 20, 2016 3:16 am

I am a paying customer and I have produced games using Construct 2 that have been published to iOS, Android, Amazon, Chrome and Microsoft App Store and I am VERY satisfied with Construct 2, it is an amazing program.

Something however hmm, annoys me.
The whole idea of a "function" in every other programming language is to make things easy, call this function and it does all those lines again.
But certain functions are mostly only called in certain dialogs/interface and in Construct 2 case, event sheets.

The idea that all functions created inside the function object is global and exposed to all event sheets is just...absurd.

Can we have like the ability to confine certain functions to certain event sheets ? So that on the next event sheet, I wouldn't have access to functions confine to other event sheets ?
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Sat Feb 20, 2016 11:53 am

I just made a quick test for you and you can't call functions that are not linked to your event sheet. For ex. if you have event sheet 'A' and 'B' and you are trying to call a function using an event in 'A' that is set on 'B' you won't be able to do that unless you include event sheet 'B' into 'A'. So you just see the list of all the functions when you are calling them but you can't use all of them.
B
135
S
33
G
17
Posts: 1,560
Reputation: 20,734

Post » Sat Feb 20, 2016 6:42 pm

Can we don't even see those functions which we can't use in the first place ?
Nobody wants to see what they can't use.
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Sat Feb 20, 2016 7:45 pm

Toddler wrote:Can we don't even see those functions which we can't use in the first place ?
Nobody wants to see what they can't use.

I think it would be better to have a setting for that either in the editor or in the plugin itself. Since for beginners it might be a better idea to list all of their functions (with a warning) in case they forget to include the event sheet containing it.
B
135
S
33
G
17
Posts: 1,560
Reputation: 20,734


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests