[RMVXAce] Can actors have animations?

Hey all, I'm new but have been going over some tutorials and the Lite tool (before I buy) and I've noticed that "animations" don't seem to be character animations but more like particle effects.

So my question would be is there a way, via scripting maybe, to give charsheets animations other than the walking up/down/left/right? An example would be when the player is next to a tree and presses the user key, I would want the character to play a chopping animation. I guess a workaround would be to make a particle that looks like an axe and play a chopping sound with it and maybe play it a couple times but I just think it would look cooler if the character actually played a chopping animation.

Thanks!
Yes. You would need to create the sprites in a new character sheet (in the RTP there are already some, but for NPCs rather than actors), and add a move route to the event to tell it to switch to that sprite, do the movements, then switch back again afterwards.


There are probably some scripts around that will handle much of the work required, but you wouldn't be able to test them out in Lite.
Thanks for your quick response.

So I have the event on the tree. I make a Move Route->Change Graphic and just select a different actor sheet expecting to see my actor change to this new actor. However what ended up happening was this new character showed up on top of the tree and my main character stayed the same.

Since the tree is the event, I need the move route to act on the actor who triggered the event and not the event object itself.
You need to set the move route to refer to the Player, not This Event. There's a dropdown box in the Set Move Route command that lets you choose 'This Event', 'Player', or any other event on the map. Also, if you want the tree to disappear, you should put the tree graphic into the event, and not draw it on the map.
Oh, that's what that drop down is for. What does it mean to put the tree graphic "into" the event? I guess I would think there would be an event to hide/remove that layer tile or something but can't seem to find anything like that.

Along these lines, is there a way to give tiles properties? Ideally I would want a wood count variable tied to this tree tile and in the event I would reduce that property and give the inventory item to the player.

Thanks for this help btw. Very good first impression. This wood chopping test is really the main test for me to see if this engine can meet my needs. If I can get this working then I can apply this general principle to many resources gathering systems in my game.
You need to create a new character spritesheet, which is three times the width and four times the height of the tree, put a $ at the start of the name, and put the tree sprite into one of the cells. Then use that for the graphic, and check the Direction Fix box.


Is the wood count variable something that increases each time you chop a tree down (does 1 tree = 1 piece of wood in inventory), or do you have to chop a tree several times, each time getting one piece of wood, until the tree is gone (1 tree = 4 pieces of wood)? If the latter, does the sprite change each time you get a piece of wood, or only after getting them all?


If it's 1 tree = 1 piece of wood, you would not need to use variables at all. You'd just need to add 1 wood to inventory, then turn on a self switch which activates a second page on the same event that has no graphic and no event commands (the tree disappears after you chop it, and a piece of wood is added to inventory).


If it's 1 tree = x pieces of wood, you could either use self switches (if you get 4 or less pieces of wood from each tree), or you would have to use a variable per tree, increase it each time you chop some wood and give a piece of wood to the player, and when it hits however many pieces you want from that tree, THEN turn on a self switch to make the tree disappear. That would be a pain if you have 50 trees and can chop them all. PK8 wrote a Self Data Suite script that will let you assign a variable to an event, so you wouldn't have to create 50 variables for 50 trees. But again, you can't use that until you get the full version 🙂
Oh, I see. Treat it more like an npc instead of a normal tile. I suppose if I do that I could use the HP of the "tree" character as the variable and decrease that by 1 each time. Then when it's 0 show one of the empty cells of the sheet and make it passable so it doesn't block the player.

Are we able to have NPC's be bigger than 1 tile just in case I want a bigger tree that takes up more than 1 tile? I suppose I could hack around that someway otherwise

What does the $ at the start of the name do?
[$] is for bigger character sets than 32x32 or smaller even, or not in a full sheet with 8 characters on it. If you check the rest of the rtp it shows it. [!] sign is to remove the 4 pixel offset the characterset has when they're displayed on the map.
No, not an actor with HP. NPCs don't have HP, and events aren't NPCs. They are just things that show up on the map that you might want to look different or do different things depending on actions you have taken. SOMETIMES they are NPCs.


Let's say you want to chop the tree 4 times before it disappears completely, and each time you chop it, the chopping animation will play, and you'll get 1 piece of wood.


You would set up your event with FIVE pages. On the first 4 pages you'd have the tree image from your new character sheet. On the 5th page, you'll have no image and the priority will be set to Below Player (no need to use Through in this case).


In the conditions in the top left, leave them blank on page 1. On page 2, choose Self Switch A is ON as the condition. On page 3, choose Self Switch B is ON as the condition, on page 4, choose Self Switch C, and on page 5, choose Self Switch D.


Then in the event commands on page 1, do your chopping animation and sound effect, add 1 wood to inventory, and turn on self switch A.


Copy and paste the commands over to page 2, but change the last one to turn on self switch B instead.


Copy and paste to page 3, and change the last one to turn on self switch C.


Finally, copy and paste to page 4, and change the last command to turn on self switch D.


Here's what happens when you interact with the tree each time:


First time - you'll get 1 wood, self switch A will be turned on, page 2 will become active.


Second time - you'll get 1 wood, self switch B will be turned on, page 3 will become active.


Third time - you'll get 1 wood, self switch C will be turned on, page 4 will become active.


Fourth and final time - you'll get 1 wood, self switch D will be turned on, page 5 will become active, and since page 5 has no sprite, the tree will disappear.


Your suggestion is REALLY off on the wrong tangent, so if you have trouble following what I've said above, I suggest you do some basic tutorials that teach you about switches, self switches and event pages, before you tackle this. If you want to chop more than 4 times, you run out of self switches and need to use variables instead, so if that's the case, also read some tutorials on variables.
I am a software developer and feel more comfortable in code myself, but I was tired of other engines as I just want to do gameplay coding. I do want more than 4 chops per tree and the variable setup in the engine does seem like it would be tedious in this case. I'll have to see if I can find the script you talked about and just see if I can get the basic understanding of it (I work in .NET/C++ and never used Ruby before) before I purchase. 

I was taking a guess that NPC's had health but I guess I was incorrect. It's one of those things where I couldn't find anything that said either way so I just guessed.

I'll look at some variable tutorials to see how they are used in the engine. Thanks for all your help. I'm probably worse than a total noob as I have a ton of preconceived notions about how things "should" be done 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmvxace-can-actors-have-animations.19158/