looks like battle animations to me

This commit is contained in:
the me 2022-08-23 01:34:45 -07:00
parent 64a74d6f36
commit b0e718f879
12 changed files with 107 additions and 20 deletions

View file

@ -28,11 +28,15 @@ continuecombat = function(me, them) {
action = {
effect: function(me, them) {
var guy = instance_create(them.x, them.y, o_damage);
guy.hspd = random(3)-1.5;
guy.vspd = -random(1)-3;
if irandom(99) < (me.data.hit.val) { //add avo
them.data.hp.val -= (me.data.str.val-them.data.def.val);
guy.amount = (me.data.str.val-them.data.def.val);
return me.data.str.val;
} else {
log(string(me) + " missed!");
guy.amount = "Miss!";
return 0;
}