Friday, February 9, 2018

Day 8

Today I tried to add in an attack animation that I made a few years ago.

I'm just going to add it in as a base to try to work with it and then i'll improve it later.

So I found the gif on my old blog from Grade 9 and I implemented it into GameMaker Studio.
I made a new script and called it attack_state and inside I made it so that it changed the sprite to the sword attack sprite.
I then made it in the step event that when I press the left mouse button that it would switch to the attack_state.

And this is how it looks when I click the mouse so far

One thing that I notice is off is that the sprite doesn't go straight and that it is a bit angled to the left of the mouse even thought I want it to point it at the mouse. I think i know what I have to do and I will try that tomorrow.

Today I learned more of how to work with states and how to switch sprites using sprite_index.

Tomorrow I will try to fix my problem and try to make it so that when the animation ends that it'll go back to normal state.

1 comment:

Animate Lines and Ripple effect

Screenshot from Animate CC Animated GIF (Button does not work) Adobe Flash Player Version