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
57
S
14
G
6
Posts: 493
Reputation: 11,253

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
31
S
9
G
1
Posts: 45
Reputation: 4,492

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
57
S
14
G
6
Posts: 493
Reputation: 11,253

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
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

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 Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

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
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 15 guests