I put this in RMMV but I'm pretty sure it's a general question but well, anyways...
Hello ^^ This is probably a noob question but I am a noob so here it is:
For context, I have this function:
Suppose, I want to call this function but I want to use only name, x and dur. Everything else can keep their default value. In python you can just do $.move('randome name', x=500, dur=30)but I guess it's not possible in js (it is. I didn't know) TT Any ideas?
Hello ^^ This is probably a noob question but I am a noob so here it is:
For context, I have this function:
Code:
$.move = function(name, x=0, y=0, scale = 100, dur=60) {
var moveId = $.getId(name);
for (i = 0; i <= moveId.length - 1; i++) {
$gameScreen.movePicture(moveId[i], 0, x, y, scale, scale, 255, 0, dur);
}
}
Suppose, I want to call this function but I want to use only name, x and dur. Everything else can keep their default value. In python you can just do $.move('randome name', x=500, dur=30)