This commit is contained in:
the me 2022-08-23 06:06:02 -07:00
parent b31b8ba5d7
commit 7fb465c82e
43 changed files with 159 additions and 86 deletions

View file

@ -6,7 +6,7 @@ var i;
c_inheritunit(2+i, 2, un.chara);
}*/
x -= 150;
c_loadstageone();
waiting = 0;

View file

@ -1,2 +1,4 @@
state();
draw_set_font(ft_chiaro);
draw_set_font(ft_chiaro);
x = clamp(x, 0, 20*ts.x);
y = clamp(y, 0, 14*ts.y);

View file

@ -19,6 +19,9 @@ hitting = noone;
continuecombat = function(me, them) {
//if stamina returnable = true stamina-- return true
if them.data.str.val < 0 || me.data.hp.val <= 0 {
return false;
}
if !(attacks-(me.data.spd.val > them.data.spd.val+5)) { //DONT USE FIVE, OR ANY OF THIS
attacks++;
return true;
@ -32,7 +35,7 @@ action = {
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);
them.data.hp.val = min(them.data.hp.val - (me.data.str.val-them.data.def.val), them.data.hp.cap);
guy.amount = (me.data.str.val-them.data.def.val);
return me.data.str.val;
} else {

View file

@ -4,14 +4,17 @@ draw_set_color(c_black);
//draw_set_alpha(1);
var worldMat = matrix_get(matrix_world);
//this is the location of where i want to draw from !!!
var worldMat2 = matrix_build(x,y+6,0,50,0,0,0.6,0.6,0.6);
var worldMat2 = matrix_build(x,y-6,0,50,0,0,0.6,0.6,0.6);
matrix_set(matrix_world,worldMat2);
if waiting image_blend = c_grey else image_blend = c_white;
image_blend = c_white;
if marked image_blend = c_red;
if waiting image_blend = c_grey;
var tempx = x;
var tempy = y;
x = 0;
y = 0;
draw_self();
//draw_sprite_ext(sprite_index, image_index, x+sprite_width/2, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
x = tempx;
y = tempy;