D
DNgames
Guest
-So im making survival game and i need to make building system i want it to look like this.
-When player enter build mode i want to create those white boxes around him and those boxes are pressed i want to create object that is stored in inventory.
-I made this by creating it this way :
box 1 = instance_create(x, y, obj_build_spot);
with(box1)
{
x = obj_player.x;
y = obj_player.y-20;
}
-I started doing it for all of the boxes.
So i ask if anyone can show me easier shorter method.
-When player enter build mode i want to create those white boxes around him and those boxes are pressed i want to create object that is stored in inventory.
-I made this by creating it this way :
box 1 = instance_create(x, y, obj_build_spot);
with(box1)
{
x = obj_player.x;
y = obj_player.y-20;
}
-I started doing it for all of the boxes.
So i ask if anyone can show me easier shorter method.