I tried to make a smoother animation using as reference the "treasure box"quick made event.
The limitation I felt with that method is that I effectively use only 4 out the 12 frame on my $character_sprite.png,
because I cycle only through directional frame.
I'm trying now to read through each the frame of the $character_sprite.png with script calls.
The main part of my problem is to cycle through the row:
While the script run and display the pattern from the sprite, it doesn't stay on them even if I set a Wait command.
The "event001" I use for animate is set to (no image) wich make it have for originalPattern = 0.
After the scriptcall of .setPattern() end, the image always return at the "originalPattern" row and break the animation cycle, even if I use Wait command.
-Edit-
@SwiftSign :
This is the method I also opted for. But we only effectively use 4 patterns(1 column) per $images which force us to make 3 files for 12 frames while 1 file would be enough if we could freely cycle through the pattern of each rows.
@Andar :
On the event editor page, none of the stepping/walking animation option are selected.
When I setup an image for the event from the editor, I can choose any pattern of the image.
The pattern's row seem to be stored as an "originalPattern", that conflicting with $gameMap._events[1].setPattern(x) usage.
I can't find a method for modify the supposed "originalPattern", but only a bollean method.
https://kinoar.github.io/rmmv-doc-web/classes/game_event.html
The limitation I felt with that method is that I effectively use only 4 out the 12 frame on my $character_sprite.png,
because I cycle only through directional frame.
I'm trying now to read through each the frame of the $character_sprite.png with script calls.
The main part of my problem is to cycle through the row:
Code:
$gameMap._events[1].setImage("$character_sprite")
$gameMap._events[1].setPattern(0)
Wait : 180 frames
$gameMap._events[1].setPattern(1)
Wait : 180 frames
$gameMap._events[1].setPattern(2)
While the script run and display the pattern from the sprite, it doesn't stay on them even if I set a Wait command.
The "event001" I use for animate is set to (no image) wich make it have for originalPattern = 0.
After the scriptcall of .setPattern() end, the image always return at the "originalPattern" row and break the animation cycle, even if I use Wait command.
-Edit-
@SwiftSign :
This is the method I also opted for. But we only effectively use 4 patterns(1 column) per $images which force us to make 3 files for 12 frames while 1 file would be enough if we could freely cycle through the pattern of each rows.
@Andar :
On the event editor page, none of the stepping/walking animation option are selected.
When I setup an image for the event from the editor, I can choose any pattern of the image.
The pattern's row seem to be stored as an "originalPattern", that conflicting with $gameMap._events[1].setPattern(x) usage.
I can't find a method for modify the supposed "originalPattern", but only a bollean method.
https://kinoar.github.io/rmmv-doc-web/classes/game_event.html