How to create custom expression?

Discussion and feedback on Construct 2

Post » Fri Jan 06, 2012 10:22 am

Hello,

I am new to construct 2.

How to create custom expression using construct 2?

i think expression is like a javascript function? if i can create custom expression using construct 2 then i can call that function on completion of game.

Please help.


Thanks
Ravi
B
2
G
1
Posts: 2
Reputation: 504

Post » Fri Jan 06, 2012 12:32 pm

To have custom expression you would need to make a new plugin/behavior using the SDK.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sat May 03, 2014 1:21 pm

You could also use the function object, have a function that return a value, then call it via function.call(functionname)
https://www.scirra.com/forum/viewtopic.php?t=152506

And that is why you shall respect the bug reports guidelines, not only giving a capx is making the bug reproductible in one click in a situation they can work with (less time wasted trying to reproduce vague instructions) but also it helps filtering false positives.

Game design is all about decomposing the core of your game so it becomes simple instructions.
B
42
S
17
G
16
Posts: 2,094
Reputation: 15,355


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests