Posts

Showing posts from March, 2019

28/03/2019

I have managed to fix the glitch that messed up the camera by making the camera to rotate with the player when it turns around. I have made it so after a bullet is fired it will be deleted after one second by connecting the fire button to a button that deletes the object. I made the delete button have a delay so that the bullet wouldn't be deleted instantly. I have also made it so the backgrounds are on different layers so that they scroll at different speeds which is something that would realistically happen. I have also placed a health bar that is above both the enemy and player, it follows them wherever they go and it will begin to empty when they take damage. It is locked to the top of their heads which means if they rotate the health bar will also be where the head is. I have also made it so that the player will die after being hit by the enemy too much. I have added the ability to shoot to enemies, however, their bullets don't move and will stay in place. Becau

07/03/2019

Image
I started to make an enemy that is able to fly after the player. I made it so the enemy is able to collide with both the player and environment and made the enemy able to track the player by following their movements and updating where they are moving to once every two seconds. I noticed that the enemy bounces back whenever they make contact with me. I will remove this feature but will make a weapon that allows for this to happen again and also do damage. I also made so the bullets from my weapon disappear when they hit an object like an enemy or a platform, but I still need to make them delete themselves after a while. After this, I set out to try and fix the error with my firing. At first, when I made it so the camera would change with the player all it did was flip the whole game and made things like platforms and enemies invisible to me. Then I tried making a new camera that would follow the player but wouldn't be directly connected to the player, however, it would