Cutscene help! Change Player image from hurt to standing.

Hello!
I've traversed the ocean of threads related to this topic and still can't find a solution. I'm also really new to this, and don't have a lot of experience in coding yet!

Info:
System: Mac M1
Assets: Default RPGMAKERMZ assets

I am working on a cutscene that goes like this:
1)
Screenshot 2023-08-24 at 12.47.00 PM.png
Player is lying down
2) <Animation happens>
3) Screen fades to black
4) Character is standing up and can be moved around by the player.

My issue is with step 1.
This is my scene setup. The event is in the bottom right corner. Player has been created in the middle of the screen. All my editing is taking place in the event square.
Screenshot 2023-08-24 at 1.00.26 PM.png


I go to event editor>Set Movement Route>Change Image>Select Image. And by default the following happens.

Screenshot 2023-08-24 at 1.04.07 PM.png
Screenshot 2023-08-24 at 1.04.46 PM.png


How can I change this to THAT
Screenshot 2023-08-24 at 1.04.46 PM.png
Screenshot 2023-08-24 at 12.47.00 PM.png


Note: I have tried using
set_char("SF_Damage1”,2,3,3)
in Set Movement Route>Script, but I get an error that SF_Damage1 is not defined, and I don't know how to fix that.

I'd appreciate any help!
Thank you.
A little hack:
  • set an empty event where the player is (if it's not a fixed position you can teleport the event to the player x, y coordinates)
  • at the second page of the event (activated by switch or variable) set the image you want for the damaged player
  • now the hack: when you want the player to fall down do this in sequence: Player is invisible, switch or variable that activate the second page of the event is ON
  • this way the player disappear, the event with the damaged graphic appears, you fade to black, deactivate the switch and make the player visible
Hey!
Thanks a ton 😀 After some experiments I got it work the way you described.
Note: I have tried using
set_char("SF_Damage1”,2,3,3)
Just to mention it, for you doing more event tricks in the future - I don't know where you found that, but it's not any kind of valid code for MZ.

Good luck with your project!
set_char("SF_Damage1”,2,3,3)

Smells ruby-ish so I suspect you found it on a XP or VX(A) thread. Do be careful as scripts in Ruby cannot be used for MZ.

Original thread: https://forums.rpgmakerweb.com/threads/cutscene-help-change-player-image-from-hurt-to-standing.160575/