The easiest way to explain Sprites is that the Characters are clipped parts of a single image.
In XP for example, we have 4 directions and 4 different Stepping Animation Frames. 4 x 4 = 16. The way sprites work is to divide the whole image file down to clip off all the stuff that isnt properly representing the character at that time. This concept works exactly the same for any animation. Tilesets also use Sprites in Spriteset_Map. It does the same thing and takes one large image and clips off anything that isnt your tile. Battlers that arent animated can also be animated, but the image file is typically the entire sprite.
# If graphic is character
if @tile_id == 0
# Set rectangular transfer
sx = @character.pattern * @cw
sy = (@character.direction - 2) / 2 * @ch
self.src_rect.set(sx, sy, @cw, @ch)
end
The end result is that sx and sy will both come out to be the top left corner of the character. @cw and @ch are "character width" and "character height". The @character.direction - 2) / 2 * @ch will change the Directions that appear on a numeric keypad, 2, 4, 6, 8 to 0, 1, 2, 3. This is how the code determines what row and what column of the entire image will be displayed as your sprite character.
1) explained above
2) you could, but you'd need to script that. I for one has a personal script which basically attaches and draws things above or below any character sprite. Currently using it to show wearables in the sprite.
Not really, you just animate them the same way the other characters are animated. So as long as you understand how the characters are animated, it becomes easy peasy. It's just like putting a character above/below another character. 🙂
Animations are not as difficult as you might think. Basically, its just a Counter. Each frame, the counter goes up by 1. When it reaches a certain value, change the frame of animation. Lots has to do with Move Speed. All in all, it is the same for almost every animation, select the right frame from the sprite sheet at the indicated time.
Does anyone have a Where to Start tut or even a video so I can have a look at how it all works? Would be great to see someone import their own art and animate it, especially passing a 3 frame walk. If not, I will delve through the script editor and figure it out! Thanks 🙂
Change this line
$sprite.src_rect.x += 1*32 if Graphics.frame_count % 5 == 0To this
$sprite.src_rect.x += 1And try to make a conclusion by yourself
Necroing this thread which I only just divined was the source of my Deja Vu.
So I'm now working on having a sprite that is minimum 64 tall, 32 wide. Frankly, I'd like to be substantially bigger than the chibi's but I'm beginning to see the limitations of that hope! Now then. I'd like to get my sprites into a walking animation that I have at about 8 frames, Any recommendations? The goal for the project is to have these higher frame, more fluid animations wherever possible.
2. Yes you can do that easily with Events. You can put Events on top of each other and use them for Visual Eqipment or different Body Parts.
But you have to Event that the Body Part Events move when Player Moves. (But i tested it it works Bugfree).
1. You Char set got 3poses per direction, they are displayed 2 - 1 - 2 - 3 , so you get 3poses but they are animated like 4 in the good old xp^^.
You could also use the database animation tool and just display animation on char event when needed, like sword slash (with for example 15 frames/pictures +sounds and screen effects.