I would like to call a function to simplify the code.
And if it is possible, how create function with parameters? Thanks.
I would like to call a function to simplify the code.
And if it is possible, how create function with parameters? Thanks.
For native games there is a function extension:
http://wiki.compilgames.net/doku.php/gdevelop/documentation/manual/built_events
If you need it for html5 I guess you’d have to use a javascript event block for that.
For native games only, ok, understood.
I’ve seen in documentation, a possibility of creating a function using a link and global variables as parameters and return value.
But link can not be used as action. It need create a sub-event.
This is not a problem. Sub-events are processed only if their parent event is executed (its conditions are fulfilled).