Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hello, why does the first mode work and the second not?
The first mode does the correct operation.
The second mode just does nothing, the value in the array remains the same.
Develop games in your browser. Powerful, performant & highly capable.
function.param(1) is the second parameter, you only have 1 parameter so i guess you need function.param(0). function.param(1) has no value here.
There are two parameters.
If it were as you say then the first mode would not work either, but it does work, I mean that the operation (a subtraction) is performed well but in the second mode nothing happens and no operation is performed.
Call to the function