Function actions - Call expression

Discussion and feedback on Construct 2

» Sun Jan 25, 2015 8:44 pm

I still can't understand
thanks so much!!
B
17
S
7
Posts: 360
Reputation: 2,202

» 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.
B
72
S
22
G
290
Posts: 3,885
Reputation: 159,511

» Mon Jan 26, 2015 4:27 am

blackhornet wrote:Two ways to call a function.

thanks but i'm not asking this
B
17
S
7
Posts: 360
Reputation: 2,202

» Mon Jan 26, 2015 5:31 am

@fongka2

Look at the Text2.text=>Function.Call("MultiplyByTwo", 6)
B
91
S
27
G
14
Posts: 391
Reputation: 13,133

» 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
60
S
18
G
13
Posts: 449
Reputation: 10,811

» 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
You do not have the required permissions to view the files attached to this post.
B
17
S
7
Posts: 360
Reputation: 2,202

» 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
54
S
23
G
18
Posts: 2,123
Reputation: 17,200

» 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
B
17
S
7
Posts: 360
Reputation: 2,202

» 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.
B
72
S
22
G
290
Posts: 3,885
Reputation: 159,511

» 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