Today I worked on making animation for my sprites. First off I tried to make a running animation for my sprite but I don't know how. I looked up tutorials online on how but i still don't have an imagination. I'm not an artist normally and I rarely ever draw so i'm not used to this kind of stuff. I used Piskel to make my sprites but i used a tutorial and kinda cheated to make my sprite because i almost copied exact the tutorial's sprite Here. I will try to get people to help me next time. Today was a very non productive day, i hope i will do better next class.
Tomorrow I will either work on something new or work on my animations and sprites.
Day 31
Today I worked on animating my sprite and making an idle sprite. I made it so that the sprite head moves up and down to kinda look like he's breathing.
Then i put it inside the game and set image_speed to 0.05
After that on the last bit of class I added the fifth level to level select
And then I added the death collision to the fifth level because i forgot last time.
Tomorrow I will try to make a running animation and maybe improve the idle sprite.
Day 30
Today I worked on a counter that adds up how many times you died. I used the same code as the lives from last game but changed it with deathcounts. And made it so that whenever you die add one to deathcount. Then i would draw the string in the top left corner.
Then I worked on implementing slope collision on a new level. I used this video to help me: https://www.youtube.com/watch?v=1r1rElIiWqw
This is how it turned out
I can go up the slopes then fall down.
Tomorrow I will work on a new level or enemy ai.
Day 29
Today at the beginning of class i fixed the powerups with this code.
//Powerup activation
//Powerup activation
if (powerup) {
jumps = 1;
}
if key_jump and (powerup) {
powerup = false;
}
So that was easy. Then I made a new level where you have to jump twice to get to the platform.
Then at the last bit of class of worked on the title screen.
I used the same code as my last game. Quit exits game, Level select takes you to level select and start, starts from level 1.
Tomorrow i will work on another level.
Day 28
Today I worked on the powerups for the game, but i can't get it to work. I want it so that when i pick up the powerup to get an extra jump. I also made a new level for the powerups tutorial.
Like this
But i can't get it to work because whenever i pick it up i can jump infinite amount of times.
Tomorrow I will find a way to reset the jumps everytime i jump.
Day 27
I did a lot on class today. I restarted the new game and i got all the basic things down (like objects, sprites and tiles etc.)
Then i implemented Collision with a simple 20 line code
//Horizontal Collision
Then I implemented movement into my game with the same code i used in my previous game
//Get the player's input
Then i implemented Collision with a simple 20 line code
//Horizontal Collision
if (place_meeting(x+hsp,y,obj_wall))
{
while(!place_meeting(x+sign(hsp),y,obj_wall))
{
x += sign(hsp);
}
hsp = 0;
}
x += hsp;
//Vertical Collision
if (place_meeting(x,y+vsp,obj_wall))
{
while(!place_meeting(x,y+sign(vsp),obj_wall))
{
y += sign(vsp);
}
vsp = 0;
}
y += vsp;
Then I implemented movement into my game with the same code i used in my previous game
//Get the player's input
key_right = keyboard_check(vk_right);
key_left = -keyboard_check(vk_left);
key_jump = keyboard_check_pressed(vk_space) or keyboard_check_pressed(vk_up);
//React to inputs
if move_lock = false
{
move = key_left + key_right
}
Then a new code I added from a different game is the Enemy movement which makes the object bounce back and forth off objects. Like this
//Enemy Collision
Then i added a code that kinda makes it like a Goomba you can only kill if you jump on it. If it's sides touch you, you die.
This is the code
//Enemy Collision
if (place_meeting(x,y,obj_player))
{
if (obj_player.y < y-16)
{
with (obj_player) vsp = -jumpspeed;
instance_destroy();
}
else
{
room_restart();
}
}
The video i used to help me with the enemy was: https://www.youtube.com/watch?v=wmnaOLI6RzE&nohtml5=False
Then I wanted a sprite for my player not just a block. So on the last bit of class i used http://www.piskelapp.com/ to make a 32x32 sprite for my player.
Tomorrow I will add powerups to the game and more levels. And if i have time an enemy sprite.
Day 26
Today I restarted my game. I didn't do much anyways so it wasn't a big deal. I will make a platformer using the same base code that i used in my last platformer instead of making a physics based world which is very confusing. I will also make the game smaller scale wise instead of having big 100x100 sprites i will have 32x32 sprites just because its easier to do. I couldn't find any character sprites to make but I found a cool tileset.
I think this is a pretty cool tileset and its royalty-free so i can use it. I am still trying to get some character sprites. I might make one at home today that i can use.
Tomorrow I will get the game mechanics down and working to where i can actually move.
Subscribe to:
Posts (Atom)











