Changing Actor Graphic

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
Just a quick question: How do I change an actor's graphic when holding a button? I want to use a running sheet for an actor,
 

dawnhunter

Villager
Member
Joined
Oct 27, 2015
Messages
10
Reaction score
5
First Language
English
Primarily Uses
As in pressing a button or holding a button (object)?

either way:

There should be an option in the events to 'Change actor graphic'.

If it is while pressing a button, it will be while the event is in action.

If it is while holding the object, set the parametors to while [button] is in the inventory.

** I don't have MV, so I can't give you screenshots of that specific version, but that's how it's been on all of the other versions that I've used **
 

altorn

Veteran
Veteran
Joined
Aug 17, 2015
Messages
53
Reaction score
12
First Language
English
Create a common parallel event that has a conditional branch.

this conditional branch needs to check if a button is pressed.

This is just a simple, crude solution, you can optimize this in so many ways.

 
Last edited by a moderator:

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
:guffaw:  God... I didn't even see that. Thanks!
 

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
Okay, so it works properly, now the only issue is with the idle frame. Is there a way to ignore that frame while the actor is moving?
 

altorn

Veteran
Veteran
Joined
Aug 17, 2015
Messages
53
Reaction score
12
First Language
English
Sorry what do you mean idle frame? From what I understand you want to it so that the character sprite changes to whatever you want when walking and pressing a button right?



For the above example, if i change to that character sheet, whenever i walk while holding ENTER, it changes to the girl with walking animation. Letting go of ENTER will change it back to the Harold character sheet.

Isn't that what you want? Sorry I dont understand what "idle" frame you mean. You mean the middle frame?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
The running button is not ENTER - it is SHIFT.
 

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
Sorry what do you mean idle frame? From what I understand you want to it so that the character sprite changes to whatever you want when walking and pressing a button right?
An idle frame is used with Shaz's more character frames plugin and is the first frame in every direction. Here's an example of a character sheet with more movement frames



You might be thinking that this would be the top half of a character sheet, but it's not, this is a whole sheet and each direction has twelve frames. The idle frames for this sheet would be in the very left column. When I move a character, I don't want the idle frame to show. That was the easy part since I edited the running image. However, when I continue to hold the run button and am not moving the character, I want to have it switch over to the other sheet for its idle frame.
 
Last edited by a moderator:

altorn

Veteran
Veteran
Joined
Aug 17, 2015
Messages
53
Reaction score
12
First Language
English
Sorry, I don't have enough knowledge to deal with this plugin.

This probably can't be done with events alone. I would write a script to implement a Run Animation using the more frames plugin but I haven't checked out this script yet (and about to go to sleep).

Maybe Shaz or some other member will help you with this. Sorry again.
 

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
Alright, I figured this out using the common event that I wrote up. There's probably an easier way to do it, but here it is:

If: Button [Shift] is pressed down If: Button [Up] is pressed down // Change to running graphic If: Button [Down] is pressed down // Change to running graphic If: Button
is pressed down // Change to running graphic If: Button
is pressed down // Change to running graphic Else: // Revert to original graphic End End End EndElse // Revert to original graphic

Next up would be to determine which actor is in the top position so that actor 1's running sprite won't be used for actors 2, 3 or 4.​
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top