Tuesday, 19 April 2016

Class 37 - Working On Impacts

Post 120

Working On Impacts

Today I started to work on giving the player more impact when they attack an enemy. So to do this I will try to make the enemy you are hitting increase in size then shrink back to its original. Now this comes with its problems as simple as it sounds. The first iteration looked something like this.

Currently i'm using a simple "image_xscale" and "image_yscale" code to increase the size of the sprite. This will work if I can just get it to size up a little bit then return to its original size.
Now this GIF is not what I wanted at all. Basically my code is completely broken in every respect.
I am quite certain I can figure out But you are supposed to learn from your mistakes. So I will continue on it until I get it to work.

Once again after some changes, it still is broken. Sadly the end of class is near and I must move onto the next post. So next class I will work on fixing this monstrosity. I should be able to make it work successfully next class. I think i'm pretty close to figuring out my problem. Sadly this problem seems to be really stupid and is probably just a typo, like having a "+=" instead of just a "=" sign.

No comments:

Post a Comment