Checkpoint 1 _Player Movement


This is my first semester and I was very excited and confused at the beginning,  but now I feel so glad to choose the game unit. Look that, my first dream game -- An antique 2D horizontal version of the adventure game.  I believe many people same as me when you are moving into a different field and are beginning at a very entry-level position, but now it’s so nice to be able to make a game that you love.

Anyway, let me show you what I learn and how I make my game. 

I created the main character of the game which is a princess and name is player, it just a picture at the first and I added many effects to it. I found a princess picture and made it vivid in my game world and use running and jumping to destroy enemies in a 2D level world.

   

A Rigibody2D component makes some kind of physics on the picture as gravity scale set to 1, the character’s picture had the gravity of a free-falling body on earth.

As we usually know that same as cartoons do, player’s movement should be animated by many pictures being played quickly and the effect is created to produce her move effect.  



Animation

It likes flash applications, puts all the characters on the timeline in time. When playing, the pointer move to each frame and the image from left to right of the timeline becomes animated.

Animator

The animator controller is like an animation manager for a character, using this operation with the code to create control over the character's movement. Player movement points are related to each other during the game, such as standing to run, running to jump, or running to stand.



Write code to correlate actions and set the speed of movement so that the player can easily control the character's movement.



Create a capsule collider 2D on the character (the green oval ), making it feel like it is standing on a platform or colliding with some objects. This will only free fall if there is no impact. If there is a collision with another collider, it will produce a touch effect.



Students Feedback

Students mentioned that when the character of player falls to the ground, it is also a jumping animation. Then I fixed this problem by set from Jump to Down in animator.

Improvements planned

When I created the player character, I first placed a 2D polygon collider on it because it automatically matched the character's entire body. This allows it to extend the character's touch area to even the flowing skirt, which makes touching the skirt work. And then I changed it to capsule collider 2D and it worked a lot better. But that still didn't work for the character in this game, because I had the idea that the character would jump and touch objects with his head. Finally, I created a circular collision 2D on its head and a capsule collision 2D on its feet to achieve the desired effect.


Reference:

All of screenshot picture from:  https://www.screentogif.com/

All of gif from:  https://www.gif.cn/

Files

TemplateData.zip Play in browser
Aug 30, 2020

Leave a comment

Log in with itch.io to leave a comment.