The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: shaz on July 21, 2007, 09:56:44 PM

Title: [RESOLVED] Help with Change Actor Graphic - RMXP
Post by: shaz on July 21, 2007, 09:56:44 PM
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?

Title: Re: Help with Change Actor Graphic - RMXP
Post by: modern algebra on July 22, 2007, 01:10:14 AM
Try this:

Set Move Route: Player
  Direction Fix ON
  Stop Animation OFF
  Move Animation OFF
  Change Graphic (appropriate image)
Title: Re: Help with Change Actor Graphic - RMXP
Post by: shaz on July 22, 2007, 03:01:45 AM
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.
Title: Re: Help with Change Actor Graphic - RMXP
Post by: modern algebra on July 22, 2007, 03:58:55 AM
Post the event you have?
Title: Re: Help with Change Actor Graphic - RMXP
Post by: shaz on July 22, 2007, 05:44:29 AM
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.
Title: Re: Help with Change Actor Graphic - RMXP
Post by: Kokowam on July 22, 2007, 11:37:34 AM
Maybe just try to put a "Wait for Movement Completion" after the move event for good luck? :P
Title: Re: Help with Change Actor Graphic - RMXP
Post by: shaz on July 22, 2007, 09:43:34 PM
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.
Title: Re: Help with Change Actor Graphic - RMXP
Post by: modern algebra on July 23, 2007, 12:35:27 AM
And the bed event just calls that common event?

I'll do a test soon.
Title: Re: Help with Change Actor Graphic - RMXP
Post by: shaz on July 23, 2007, 12:43:03 AM
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).
Title: Re: Help with Change Actor Graphic - RMXP
Post by: da good king on July 27, 2007, 11:30:05 AM
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.
Title: Re: Help with Change Actor Graphic - RMXP
Post by: shaz on July 27, 2007, 11:27:45 PM
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.
Title: Re: Help with Change Actor Graphic - RMXP
Post by: da good king on July 27, 2007, 11:37:09 PM
hmmm...maybe u could edit or create a character graphic to be nothing but your chosen character sleeping? then it would have no choice.
Title: Re: Help with Change Actor Graphic - RMXP
Post by: shaz on July 28, 2007, 06:51:49 AM
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.
Title: Re: [RESOLVED] Help with Change Actor Graphic - RMXP
Post by: shaz on August 25, 2007, 10:53:55 PM
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.