Player Movement


Introduction

In the first devlog of "Where is my spaceship?", I will introduce the movement of the character. Similar to other platform games, the character in this project also can move right, left and jump with basic implementation that press on A for left, D for right and W for jump. But the jump in this game quite difficult than others, player have to click or double-click to execute a double jump instead to hold the button like other platform games. In addition, this game is able to shoot and attack with basic implementation as well. To shoot, player has to press the SPACE button, player can also hold SPACE button if want to continuous shoot. To attack, player has to press on S.

 

This is example for total movement 

Animation

All movement of character such as jump, walk, shoot, attack also have difference animations and idle when character to freeze. The first is idle when character is standing still, the character has idle animation which make character breath like human. The second is walk animation, this animation has 13 frames and last 1 second for running throughout 13 frames. The third animation is jump which has 11 frames last 1 second for 11 frames. The fourth is shoot with 6 frames and last 0:05 second. And the last is attack animation which has 9 frames last 0:08 seconds. These animations make character be more natural and lively.


This is an animation of idle

This is an animation of walk

This is an animation of jump
This is an animation of shoot

This is an animation of attack

Camera movement and background

In this version, I made the camera follows character which designed to enhance player immersion and provide a seamless gaming experience. In addition, with cinemachine confiner it will limit the camera's space. This helps ensure that the camera can't go beyond the background and it also help players feel comfortable and immersed while playing, preventing undesirable experiences for players. In addition, the parallax script was added will ensure that the background appears continuously along side the player without interruptions.

Feedback

Thank you everyone for your valuable feedback, in this devlog I will brief summary feedback from everyone.

I really like it! The gravity feels good for floating on a low mass moon. I can't seem to click to jump though, only space to jump. Not really movement related but something is happening when you jump and shoot at the same time. The bullets seem to curve at some sort of angle.

I agree with your feeling, the problem is primarily come from shoot. My plan is restriction continuously of shooting, it will take 0.2 second to rest. In addition, there will some adjust about animation, I will try to make animations more logical and natural. In addition, there are many feedback about the bullet seem to curve when jumping and shooting at the same time. About this bug I realized that the problem is I playerVelocity into bulletVelocity so the bullet was effected by playerVelocity that made the bullet line seem to curve when jumping and I have fixed it, let's see in the next version.

Nice movements. I like the low gravity aspect however control scheme wise. I thought that space was jump by not looking at the control instructions so It was a little bit of a hiccup for me. S for melee attacking felt more like it should be crouch but idk. However pretty cool.

Yes, you right, the attack animation made the character crouch when attacking, this is a force of inertia that make character more lively and natural. 

Good player movement, I like the low gravity feature. This is not related to movement but I think it is more intuitive if left mouse button were used for shooting.

This is a good idea about using left mouse for shooting. I'm also testing and looking for the best thing between SPACE button and left mouse.

All animations have been shown above, lets me know if still contain any problem. Thank you!!!


 

Files

Builds.zip Play in browser
Sep 07, 2023

Leave a comment

Log in with itch.io to leave a comment.