Hi, people!
I'm trying to change some events in my map to use Stepping.
By default, all of them are with the Stepping box unchecked.
But something happens, then a lot of them have to change to Stepping animation.
Well, I manage to use the script call to all of them in this way(using move route script field):
But, how can I make this more simple?
I'm trying to use "ForEach" to englobe all events.
I try to put the id of the events in a variable:
var casa = [2, 3, 4, 5]
$gameMap.event(casa).setStepAnime(true);
or
var casa = [2, 3, 4, 5]
$gameMap.event((forEach(casa))).setStepAnime(true);
But I can't get it to work
I already try to use the sentence "for (var i = 1; i < $gameMap._event.length; i++) $gameMap.event(i).setStepAnime(true)"
Well, I try a lot of things, but I can't get it to work.
I'm trying to change some events in my map to use Stepping.
By default, all of them are with the Stepping box unchecked.
But something happens, then a lot of them have to change to Stepping animation.
Well, I manage to use the script call to all of them in this way(using move route script field):
Code:
$gameMap.event(2).setStepAnime(true);
$gameMap.event(3).setStepAnime(true);
$gameMap.event(4).setStepAnime(true);
etc...
But, how can I make this more simple?
I'm trying to use "ForEach" to englobe all events.
I try to put the id of the events in a variable:
var casa = [2, 3, 4, 5]
$gameMap.event(casa).setStepAnime(true);
or
var casa = [2, 3, 4, 5]
$gameMap.event((forEach(casa))).setStepAnime(true);
But I can't get it to work
I already try to use the sentence "for (var i = 1; i < $gameMap._event.length; i++) $gameMap.event(i).setStepAnime(true)"
Well, I try a lot of things, but I can't get it to work.