Tuesday, March 6, 2018

Day 18

Today I worked on my attack hitbox in my game.

I started out with doing the same thing as yesterday and tried to make a red box sprite that's the same size as the animation. After this I started coding in the attack state because that's where everything will be happening.

I added this code that made it so that it would create the hitbox.

What this does is that it creates the hitbox object in between the second and fourth animations (because it starts counting at 0)

Heres how it looks so far


It just creates hitboxes everywhere. 
I think I need to add a code to destory the hitbox after its done.

Unfortunately I ran out of time

Today I learned how to create an object during the animation.

Tomorrow I will continue work on the hitbox.

1 comment:

Animate Lines and Ripple effect

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