This commit is contained in:
the me 2022-08-20 11:53:35 -07:00
commit c9ebba829a
11 changed files with 7 additions and 5 deletions

View file

@ -26,7 +26,7 @@ function getView(){
var _x = global.camerax;
var _y = global.cameray;
var half = (7.5*32)+40;
return matrix_build_lookat(_x,_y+180,150,_x,_y,0,0,0,-1);
return matrix_build_lookat(_x,_y+60,90,_x,_y,0,0,0,-1);
}
function setCam(){
@ -56,5 +56,5 @@ models = [];
textbox_create(txt_test);
var spr = sprite_add("./map1/mapatlas.png",0,false,false,0,0);
nu Model("./map1/map1.dat", spr, u, 200, 140, u, .65, u, u, u,);
nu Model("./map1/map1.dat", spr, u, 200, 140, u, 4, u, u, u,);
setCam();

View file

@ -4,7 +4,7 @@ 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,0,90,0,0,1,1,1);
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;
var tempx = x;
@ -21,7 +21,7 @@ draw_rectangle(0-ts.x/2, 0-sprite_height-1,
0-ts.x/2+(ts.x*(data.hp.val/data.hp.cap)),
0-sprite_height+1, false
);
draw_text(0, 0-sprite_height-4, data.hp.val);
draw_text(5, -6-sprite_height-6, data.hp.val);
//draw_set_color(c_red);
//draw_circle(x, y, 5, false);