Function actions - Call expression

Discussion and feedback on Construct 2

Post » Sun Jan 25, 2015 8:44 pm

Hi,may i asking for some demo about Call expression?
I still can't understand :|
thanks so much!!
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Mon Jan 26, 2015 2:19 am

Two ways to call a function.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Mon Jan 26, 2015 4:27 am

blackhornet wrote:Two ways to call a function.

thanks but i'm not asking this
i asking action>function>Call expression
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Mon Jan 26, 2015 5:31 am

@fongka2

Look at the Text2.text=>Function.Call("MultiplyByTwo", 6)
B
75
S
22
G
14
Posts: 388
Reputation: 12,222

Post » Mon Jan 26, 2015 6:12 am

Thank you, I got the Return Value now, I never really got that part before (oh, horrors. I know. haha)
B
58
S
18
G
13
Posts: 447
Reputation: 10,735

Post » Mon Jan 26, 2015 4:36 pm

tumira wrote:@fongka2

Look at the Text2.text=>Function.Call("MultiplyByTwo", 6)

thanks
but .. just don't know about action>function>Call expression
may you please make a demo about action>function>Call expression please.. :roll:
You do not have the required permissions to view the files attached to this post.
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Mon Jan 26, 2015 4:50 pm

if your function is "sum", with parameter 0 and 1 being numbers (5 and 6 in my exemple).

just enter Function.Call("sum", 5, 6)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Mon Jan 26, 2015 5:57 pm

Aphrodite wrote:if your function is "sum", with parameter 0 and 1 being numbers (5 and 6 in my exemple).

just enter Function.Call("sum", 5, 6)

I knew it
but what is[action>function>Call expression]
same to function.call ???
forgive my english if i made you feel confusion
i'm just asking [action>function>Call expression]
B
17
S
7
Posts: 360
Reputation: 2,202

Post » Mon Jan 26, 2015 6:13 pm

Never actually bothered with that one, however:
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Tue Jan 27, 2015 11:51 pm

blackhornet wrote:Never actually bothered with that one, however:

thanks!
seems its useless!
B
17
S
7
Posts: 360
Reputation: 2,202

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests