I want my character to lie down when he's going to bed. Problem is SOMETIMES when he lies down, for a brief moment it'll show a DIFFERENT image from the chosen support set, and then change to the correct one.
First I turn him to face the right way so when I change the graphic it chooses the correct image of the 16 in the support set (or it SHOULD). I even added a wait for move's completion, which didn't help fix the problem, and finally the Change Actor Graphic.
Bed has a Player Touch event that sets a switch; the events are in an autorun common event (hoping to stop any keypresses from registering for the duration) that's conditioned by that switch. Have tried just moving some of them to the Player Touch event but it's made no difference.
Any ideas?
Try this:
Set Move Route: Player
Direction Fix ON
Stop Animation OFF
Move Animation OFF
Change Graphic (appropriate image)
had a go, but it's still not working. It's still flipping between them.
I have to duck out but I'll spend some more time with that when I get back. Thanks for the help.
Post the event you have?
hope this is readable...
[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fwww.users.on.net%2F%7Emszhanlon%2Fsh%2Fforum%2FRMXP%2FsleepingEC.jpg&hash=219d60ee2b3ded24c40bec528c3951118a59a393)[/spoiler]
Doesn't seem to make a difference whether the event is set to autorun or parallel process. The event on the bed simply turns the switch on.
Maybe just try to put a "Wait for Movement Completion" after the move event for good luck? :P
already tried that ;) no go. Also took the whole thing and put it on the bed event instead of as a common event and still no joy.
And the bed event just calls that common event?
I'll do a test soon.
no, the common event is either a parallel or autorun process (I tried both - I wanted autorun to take movement control away from the player - but there might be a better way to do that) that is dependent on the switch. The bed event simply turns the switch on (and it's turned off at the end of the common event).
wait, you are trying to make it so when the player moves onto a bed, he lies down immediately raither than "walking" onto the bed ans then changing graphic?
hmm...sounds to me like you should just change the event a bit, and make it so the player actually pauses, then jumps into bed and goes into a sleeping position. what im saying is, is that sounds like one of those things that is really hard to imitate on a tile-based game.
I did add a Wait for Move's Completion but it made no difference.
I'm getting him to go into a lying position ok. It's just that sometimes when he does, it's not the correct graphic that's chosen - it's the one below, or the one to the right. And it stays that way for a moment, then changes to the correct image.
I assume it's got to do with the way the character is facing, or which of the 4 "walking stages" is being processed at the moment he issues the "lie down" command. And all I can think of to have any control over that is to use the Wait for Move's Completion and to make him face in the right direction for the graphic I want, before I actually use the Change Graphic command.
hmmm...maybe u could edit or create a character graphic to be nothing but your chosen character sleeping? then it would have no choice.
I'd actually considered that, after all other attempts have failed. But I figured SOMEWHERE out there someone must have tried to do the same thing, and possibly ran into the same problem...
I will do that though, if I can't get it sorted - it looks terrible the way it is now.
Solution was to split the graphics change between the player and the actual event.
Set player graphic to none
Set event graphic to sleeping player character
do the dim screen, music, lighten screen stuff
Set the event graphic to none
Set player graphic to whatever's appropriate
Works a treat!
Thanks Zeriab for the final solution.