Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Need help with changing player graphics on event

I'm having a bit of trouble with a feature in my project, I have events in form of chairs, when the player moves over a chair he sits on it, the problem is: I want the game to remember the players original charset and revert back to it when leaving, any idea on how to achieve that?
 

CT_Bolt

Global Moderator
Staff member
Resource Team
Xy$
0.02
I'm having a bit of trouble with a feature in my project, I have events in form of chairs, when the player moves over a chair he sits on it, the problem is: I want the game to remember the players original charset and revert back to it when leaving, any idea on how to achieve that?
Using my "Change Event Graphic" Plugin this can be done pretty easy.

Change Event Graphic Plugin:

Once you've got the plugin installed. In the chair event use the following script to "remember" & change the player graphic:
JavaScript:
$gameVariables.setValue(1, $gameParty.leader()._characterName);
$gameVariables.setValue(2, $gameParty.leader()._characterIndex);
changeEventGraphic("player", "!Flame", 4, 2);
To turn them back use the following script:
JavaScript:
changeEventGraphic("player", $gameVariables.value(1), eval($gameVariables.value(2)), 2);
Tada! Should work nicely for ya. Let me know how it works for you. (cute)
 
I'm having a bit of trouble with eventing it I think, I get the character to change graphics, but not changing back, how would you set it up?

I did this, probably all wrong, heh:
8141

8142
 
Top