Hi, I was trying to make a common event were when running the actor's character changes momentarily to enhance the dynamic of the project, however the script doesn't work, but doesn't give an error message either.
Actor running help. (Solved)
RPG Maker MZ SupportFrom the MV / MZ Script Call List (Set Actor Map Character, row ~477):
A couple of other notes:
So your script call should be:
JavaScript:
$gameActors.actor(1).setCharacterImage('&actor1', 0);
$gamePlayer.refresh();
- MZ makes HTML games, so all filenames should conform to network standards.
&is a reserved character for URLs, so the filename&actor1.pngmay cause unexpected results in-game.
- Don't write integers with zeroes in front. I.e. use
1, not0001. Why? Because in JavaScript, leading zeroes indicate an octal value. E.g.0010is another way of writing the decimal number8, and0009is just invalid. (Also,1is quicker to write than0001.)
Thank you~ ^^/
I always feel like a 6 year old struggling to fit a cube in the square hole when asking for help :,)
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/actor-running-help-solved.176811/