Hi,
I wanna learn how to create function to use it in event sheet.
I wanna do this for example like in javascript or php :
I have 3 box as layer and i want to use a function to show specific box (with passing variable of object or id ) when i need a box.
I wanna create a function which i can call every where i want
For example with jQuery :
function ShowHideBox(var1,var2{
$(var1).fadein(1500);
$(var2).fadein(1500);
}
I wanna create in construct 2 a specific event sheet (will be included in all event sheet), called : functions in order to use my function
And then in other event sheet i want to call my function like in javascript with : ShowHideBox(); but how to do this in Construct 2 ?
Thanks a lot for reading me !