phillipPbor
Member
i was trouble with finding the script for the instance_create
not the instance_create(x,y,obj)
you see I was trying to create my oun instance_create_ext(x,y,z,obj)
because I having trouble create object in game, I notice there was no z axes function in this.
so I went on a quest to find a formula for the instance_create function. no avail.
this code is new to me actually.
this is the example someone made it.
this is for the collision on the 3d brick
not the instance_create(x,y,obj)
you see I was trying to create my oun instance_create_ext(x,y,z,obj)
because I having trouble create object in game, I notice there was no z axes function in this.
so I went on a quest to find a formula for the instance_create function. no avail.
this code is new to me actually.
this is the example someone made it.
Code:
///place_meeting_ext(x,y,z, obj)
var _xx = argument0;
var _yy = argument1;
var _zz = argument2;
var _obj = argument3;
//note: xmin,xmax,ymin,ymax defined in obj_player, and in obj_star, and obj_gems, and obj_gemsviolet, and par_solid
var _x0 = _xx + xmin;
var _x1 = _xx + xmax;
var _y0 = _yy + ymin;
var _y1 = _yy + ymax;
var _z0 = _zz;
var _z1 = _z0 + height;
with (_obj) {
var _x01 = x + xmin;
var _x11 = x + xmax;
var _y01 = y + ymin;
var _y11 = y + ymax;
var _z01 = z;
var _z11 = z + height;
if (_x0 <= _x11) and (_x1 >= _x01)
and(_y0 <= _y11) and (_y1 >= _y01)
and (_z0 <= _z11) and (_z1 >= _z01) {
return true;
}
}
return false;