[Tutorial] Part 3 : How to create a HTML5 game using Tiled Map Editor
This is a continuation from the previous post ...
Part 3: Character Animation and Sprite Sheets
Today I m going to talk about how I created my main character animation sprite sheet. An animation sprite sheet is a picture with several frames, it is usually used to speed up the draw call of your rendering engine.
There are also plenty of Youtube videos tutorials available:
For example:
Multiple Components
There are many different approaches to animating your character. One way to do it is to split all the body components such as head, torso, limbs etc) out as different components and each component has its own animation sheet.
The advantages of doing so is that it offers a lot of flexibility, (such as allowing your character to change/attach/detach components or body parts in game while each component can be animated independently from one another.
In my game, I only split the head from the body, since I only need the flexibility to animate head independently from the body.
Character Actions
In this game, the main character only has 5 actions:
- Walking
- Idling
- Jumping
- Crouching
- Firing
Animating Walk Cycle
I am not an expert in animation, but I came across a Youtube video which explains quite well about how to animate a proper walk cycle. Just click at the video below to watch.
I always use simple lines as the guidelines to draw. There are only 4 frames for each step (8 for both legs if you need to differentiate left and right legs )
Animating Idle Action
To make the character look more alive when idling, you can include some simple breathing animation. For this animation I just animate the chest to go up and down using only 4 frames.
Animating Jump Action
For Jumping, I just animated the leg to retract a bit, with a little bit of arm movement. Then apply a little bit of squash and stretch.
Animating Crouch Action
This is the easiest. Just copy one of the frame above and modify the foot a bit.
Animating Fire Action
For firing bullet, I only animate the head by opening and closing the mouth.
Final Sprite Sheet
To be continued...
Leave [Tutorial] Part 3 : How to create a HTML5 game using Tiled Map Editor to:
Read more #gamedev posts
Best Posts From tensaix2j
We have not curated any of tensaix2j's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From tensaix2j
- 收藏 POAP NFT
- 在 Decentraland 上给Hive.blog 刷存在感
- 参加了Decentraland GameJam 2020 游戏制作赢了一些奖金
- 第二个上Metazone 的游戏。有Youtuber到此一游
- 把本地电视台在Decentraland场景里的电视屏幕播放
- 尝试写一个跑马游戏
- 尝试制作篮球游戏
- 写好游戏放到 metazone 贩售
- 尝试做一个桌球游戏
- 尝试做一个弹珠台 (Pinball) 的游戏
- 一人一款怀旧游戏 | Habbo 旅馆
- 尝试把建好的游戏Deploy到Decentraland的土地
- 尝试做BomberMan游戏 Part02, 制作炸弹和爆炸效果
- 尝试制作 Bomber Man 游戏
- 用 Decentraland SDK 制作一个多人连线扑克游戏
- 制作一个Decentraland 的象棋场景 PART 3 多人连线
- 制作一个Decentraland 的象棋场景 PART 3 多人连线
- 制作一个Decentraland 的象棋棋盘 PART 2
- 用Decentraland SDK制作一个可以互动的场景
- 尝试使用 Decentraland SDK