Jump to content
  • 0

Where to put player idle, attack, etc... animations?


trollface

Question

I can't find this on the documentation, and I don't see this in the editor.

Where do I put my png sheets for my characters? In the Client, while playing, I can hit insert to change a character's walking animation, but I can't figure out where to place sheets, or how to reference them, for various animations.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 1

These will all go in the Client>Resources>Entities folder. to add the animations just add the "_" + the animation name like below. Then place them in the entities folder and they will work without having to do anything else.

 

Spritename.png

Spritename_idle.png

Spritename_weapon.png

Spritename_attack.png

Spritename_cast.png

Spritename_throw.png

Link to comment
Share on other sites

  • 0

I have my sprite set up in the client with idle (4 frames), walking (10 frames), and attacking (4 frames) animations.

I created a sword swinging (4 frames) animation.

I then created a sword item through the item editor. I chose the paperdoll animation shown above for my sword swing.

Problem is, there is a constant attacking animation playing whether I'm in idle, walking or attacking.

Obviously I'm doing something wrong here with file locations, names and the item editor.

I currently have
hero.png (all three in the entities folder)
hero_attack.png
hero_idle.png


sword_attack.png (in the paperdolls folder)

What I want are the following;

Idle with a sword
Walking with a sword
Attacking with a sword

How do I get those to work properly? I assume this has to do with png locations and file names?

Link to comment
Share on other sites

  • 0

Can you post a pic of what your item looks like in the editor? 

 

Also you should rename "hero_attack" to "hero_weapon" and "sword_attack" to "sword_weapon"

 

Attack is for unarmed combat and weapon is for equipped weapons.

 

In the item editor you should select Sword.png not the Sword_attack.png.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...