Thankyou so much for new Features in Beta r109

Discussion and feedback on Construct 2

Post » Fri Nov 09, 2012 5:53 pm

how do functions work?
Image
B
66
S
18
G
9
Posts: 546
Reputation: 13,529

Post » Fri Nov 09, 2012 6:24 pm

@NotionGames
Add Function object.
In event sheet:
Function: On "myFunc"
==> do what you want (use Function.Param(X) to get param)

Foo (e.g. Mouse: On Left button)
==> Function: Call "myFunc" (with param if needed)
B
34
S
9
G
1
Posts: 46
Reputation: 4,610

Post » Fri Nov 09, 2012 6:35 pm

[QUOTE=PaulPoy] @NotionGames
Add Function object.
In event sheet:
Function: On "myFunc"
==> do what you want (use Function.Param(X) to get param)

Foo (e.g. Mouse: On Left button)
==> Function: Call "myFunc" (with param if needed)[/QUOTE]

Thank you
Image
B
66
S
18
G
9
Posts: 546
Reputation: 13,529

Post » Sun Nov 11, 2012 8:49 pm

How does the picking work with functions? If I've picked an instance and then call a function which refers to that type, will it use the picked type?

I'll give it a go and find out I guess.
B
11
S
4
G
3
Posts: 70
Reputation: 3,071

Post » Sun Nov 11, 2012 9:05 pm

Looks like that is how it works.
B
11
S
4
G
3
Posts: 70
Reputation: 3,071

Post » Sun Nov 11, 2012 9:45 pm

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,610

Post » Sun Nov 11, 2012 10:16 pm

It did seem a little clunky.

In an ideal world we'd be able to pass an object into a function (as if using a pointer). Not sure how that would work with C2's architecture. (I guess NOT)
B
11
S
4
G
3
Posts: 70
Reputation: 3,071

Post » Sun Nov 11, 2012 10:58 pm

@foolberry
The work around I proposed with iid seems fairly reasonable to me.
Image ImageImage
B
166
S
49
G
154
Posts: 8,106
Reputation: 100,233

Post » Fri Nov 16, 2012 6:59 pm

Gosh you guys,
I really feel like an idiot! Everyone is praising these new features. It sucks to have to be so honest about my ignorance, but I do not know what the heck your talking about. I just did some poking around and still have no idea what they are, where they are, and how to use them. Is there a tute or article, that I may have missed in the forum search?
B
20
S
2
Posts: 257
Reputation: 2,431

Post » Fri Nov 16, 2012 7:19 pm

@Auntie Val , Briefly , You can use them to activate a group of events with 1 event only ( You don't need to rewrite the events anymore , Yay ) !

Edit : Check out the Release log for more infos !Whiteclaws2012-11-16 19:20:26
B
41
S
17
G
17
Posts: 2,247
Reputation: 17,436

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests