Feature Suggestion: Calling a "method"

Discussion and feedback on Construct 2

Post » Tue Feb 14, 2012 6:23 pm

So when I used to code in XNA I really enjoyed the format of calling methods. It was something like this

public static enemyKill()
{
    doSomething()
}

public static doSomething()
{
   Space.Time.Bend()
}

I think this would be a really powerful feature in C2 especially for bigger games. Right now C2 is amazing for small to mid size games but I feel that if you wanted to make a bigger game you might have to add this.

Another possible use for this would be to constantly call up some "code" ex.

Projectile overlap with enemies
-> Add action
-> Call Method Destroy enemies

In destroy enemies there would be some code. I feel that this would also tidy up the event list.

Im not sure if you guys have thought of this. But I know for some of the games I would like to make I would really enjoy this feature.

Thanks for being awesome Scirra!
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

Post » Tue Feb 14, 2012 6:36 pm

@mammoth
Isn't that what plugins are for?
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Tue Feb 14, 2012 6:47 pm

Im talking about in the visual programming area.
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

Post » Tue Feb 14, 2012 7:04 pm

You might be interested in the Function plugin (third party), but we were going to add official features along those lines eventually anyway.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Feb 14, 2012 7:22 pm

Thanks Ashley. No rush as usual, but a small "method" functionality will help tidy things up.
B
69
S
11
G
6
Posts: 324
Reputation: 8,321


Return to Construct 2 General

Who is online

Users browsing this forum: shinichild, Unconnected and 2 guests