Day 19

Today I barely made any progress. I spent most of the class trying to fix my wall jumping problem but i couldn't fix it. I tried changing the player collision masks and all that and changing the animation but still no progress. I tried asking around on forums like reddit

https://www.reddit.com/r/gamemaker/comments/4cqny9/wall_jumping_help/

But I haven't gotten any help yet :(

The last few minutes of the class i worked on fixing my Level Select feature. Whenever i loaded a level other than level one it would say i died because i haven't set any lives to that room yet. So i made a separate level and gave it the lives for each level.

Tomorrow i will see if I got any response on my forums. If not i will find something else to work on like making a new level and such until i can fix this problem.

Day 18

Today I tried to fix a problem of wall jumping. Whenever i try to wall jump it just shoots me down instead of up.
I think the problem is with the player mask because it worked before i made the collision mask more precise. I don't know how to fix it but i will find out. I also added that the lives reset when you run out of lives.

Tomorrow i will try to fix the problem of the wall jump jumping down.

Day 17

What I did today

Today I finally figured out how to make the lives not reset. I made a controller object (object with no sprite) and i set it to persistent (so it doesn't reset) and in the create event i made 

life = 3;

Then in the obj_player's Step event i put

//If out of lives
if obj_lives.life <= 0 {
    show_message("You died");
    game_restart();
}


And it worked! But there,s one problem. Whenever i enter a NEW room the lives reset.

Tomorrow I will find a way to keep it from resetting whenever I enter a new room














Day 16

What I did today

Today was a short day and i didn't get much done. I tried to implement Lives to the game. In the Create Event i put 

life = 5; 

Then in the step event i put 

if life <= 0 {
       show_message("You Died")
       game_restart
}

if (place_meeting(x,y,obj_death)) {
       life -= 1;
       room_restart
}

Here in the create event i made a variable and gave it value of 5. Then in the step event I said that if your life is smaller or equal to 0 to display message "You Died" Then restarts the game. Then I said if my player is touching obj_death to take one life off and to restart the room i'm currently in. This doesn't work because whenever i restart the room it resets all my lives back to 5. So i'm trying to figure out how to make it so that its persistent even when the room resets.

Tomorrow I will try to make a way to keep the lives when it restarts the room.

Day 15

What I did today

Today I worked on the title screen and main menu of the game.
It goes right to the level you pick. I've only added a function so far for the "Start" and "Level Select"

I used this video to help me
https://www.youtube.com/watch?v=L0NJHQ27qHo

Tomorrow I will work more on the Title Screen of the level or work on adding lives to the game.

Day 14

What I did today

Today I changed the wall jump to where it bounces off the wall (kinda like super meat boy) instead of just jumping continuously.
Then i added a double jump feature to use on future levels.

I also made level three
The youtube videos i used to help me were:

https://www.youtube.com/watch?v=OKGUO2XI6Ok
https://www.youtube.com/watch?v=pVtekNF_DwM


Tomorrow I will try to make the double jumps and wall jumps only apply for some levels.

Day 13

What I did today

Today I worked on the camera movement of the game to make it smoother. Then I worked on the player movement to make it smoother too
I also added a background to the levels
I fixed the obj_next_level box to make it more trasnsparent

Tomorrow I will work on adding actually sprites to the game not just cubes and I will add some background effects too.

Day 12

What I did today

Today I worked on the second level of the game. I asked my friend Zack to help me design it but the teacher didn't let him because he was busy, so i worked on it by myself.
This is the level. I implemented a wall jump move.

This was the code
Tomorrow I will make another level and maybe add some cool effects to the game like background, better camera movement etc.

Day 11

What I did

Today i worked on the movement and collision of the player object and i finally got it to work :)))

Create Event
 I initialized the variables here and gave them a value

Step Event
Here was the fun part. I gave key_x the function for moving depending on which one it was . Then i made a move variable the contained key_left + key_right and then i made it that you could only jump if you are on the ground. Then i made a couple collision events and I was done.

What i learnt

Today i learned to fix some jump bugs and movement bugs. I found that making all the functions inside the step event is easier and more organized than making 100 events.

Tomorrow

 Tomorrow I will work on making a different level for my plat former and maybe improving stuff like the camera movement.