Day 73 (Last Post... maybe)

Today is the last day of school and possibly my last post.

At the beginning of the semester I started being independent, which means that I get marked on whatever I do and I have to blog every day about it. I started watching tutorials and such on how to program in GML and I got kinda good at it. I then started the tutorial on how to make my first game which was a space invaders type game where you shoot balloons with a plane. After I finished that game I went on to working on a platformer. I encountered a lot of bugs and problems that I had to fix and the struggle was real. The game took about 50 classes to make and I also polished it to the best of my ability. After that I started working on this top-down game and I didn't get to finish it, but I might work on it over the summer.

To anyone who reads this I would like to say some advice. You should have a decent understanding of the GML language before you start making games, and don't just copy YouTube videos because that just copying someone else's work and not yours. It is OK to borrow someone else code but not everything in the code.

I had fun this semester and I hope I can continue next year and be an independent.

Day 72

Today I restarted my level.

My outside of school friend gave me an idea of a game.  It is kinda like a huge battle field game with guns (kinda like a 2d version of planetside 2) So I started on the map. I made it very huge 16k x 16k tiles in length. I didn't get very much done in class because I tried to tile the ground but it's kind of hard to do on 16k x 16k.

Here is my progress

So ya tomorrow is the last day of school so I will write up a bit on what i've learnt this entire semester.

Day 71

Today I fixed my cursor problem and worked on other things.

I actually found out that Howard fixed my cursor while I was gone because Kody had told him that I needed help with that. The code that he put was cursor_sprite=spr_sword_cursor; it was that easy of a fix, but I thank Howard because he fixed it.

After that I started working on adding trees. I used the trees from my previous level but this time instead of making individual tiles I made a parent object for the tree and inside I set it so that its depth = -y which makes it so that you can go behind and in front if the tree depending on your Y position. So for example if your y is 5 and the tree Y is 4, your y becomes -5 and the tree y becomes -4 which means you would go under that part of the tree. This is a very simple mechanism especially for top-down games.

Next class I will be working on some other stuff.

Day 70

Today I finally fixed my problem for the enemy death. I found out I forgot to add this code inside the enemy animation code...

if hp > 0
{
//code here
}
And it worked! Here is the result:
I tried to record in higher fps with a different GIF recording tool called "Giffing Tool", but you have to pay to remove the watermark so i'll only use it in emergencies if you want to see all the frames without cutting any.

At the end I worked on a new level. I made the room size 2000x2000 and I put grass everywhere, one golbin, and a few chicken herds in random places. I loaded up the level and my mouse cursor wouldn't appear and I placed it in the room.

Tomorrow I will work on fixing the mouse cursor because it's probably an easy fix such as the camera not being centered.

Day 69

Turns out I didn't actually fix it... It still does it sometimes and it is bugging really hard. I was looking through my code and couldn't find anything to fix it. So I moved on to something else.

While I was looking through reddit/gamemaker I found this post that showed a tutorial of how to make a chicken herd Here. I followed the tutorial (and no, I didn't just copy and paste the code, I followed the tutorial and read the code and I understand how it works) and it worked! I now have a chicken herd.

Tomorrow I will be working on something else.

Day 68

Today I finally fixed my problem of the goblin animation.

Most of the class today I was helping out Kody Brooks with his programming in GML but I still got some work done.

I removed my death state because it didn't really make sense. And I added this code inside of the current states:
if hp <= 0
{
    state = scr_enemy_static
}

What this does is that it changes to the static state (or idle state) then inside of the static state I put this:

if hp <= 0
{
    sprite_index = spr_goblin_death;
    image_speed = 0.3;
}

I made the actual sprite switch inside of the idle state, And it worked!

Tomorrow I will be working more on the goblin AI.