answersLogoWhite

0

with (instance_create(x,y,objecttobecreatedbehind))
{
depth = objectinfront.depth + 1;
}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you create a question and answer box in game maker?

First Make a Sprite of the question make it an object, same with the answer


How do you change objects not sprites in game maker 7.0?

Change to another object with the same sprite


How do you make a object move towards another using Game Maker?

in code:move_towards_point(object.x,object.y,speed)


How do you make walls in game maker?

Create an objectSelect the spriteTick the Solid boxAlso, when an object collides with it, set the speed to zero.Simples!


How do you create a boundary around an object in game maker?

You could make a mask for the object that would be bigger than the actual thing so it would appear that there is a boundary.


How do you shoot a laser on game maker 8?

To shoot a laser in Game Maker 8, you can create an object for the laser and use the "keyboard_check_pressed" function to detect when a key is pressed to shoot the laser. Then, use the "instance_create" function to create instances of the laser object at the desired position. You can set the speed and direction of the laser object in its create event.


Another word for produces?

Another word for producer would be: maker, manufacturer, creator, or builder.


How can you make an object avoid another object in Game Maker?

To make an object avoid another object in Game Maker, you can use the built-in collision detection functions. In the object's step event, check for the presence of the target object using place_meeting(). If a collision is detected, calculate a direction away from the target object using point_direction() and move the object in that direction using move_towards_point() or by adjusting its position based on the calculated angle. Additionally, you can implement a distance threshold to trigger the avoidance behavior only when the objects are close enough.


How would a 2D sword or gun be created in Game-maker 3D from first person view?

To make a 2D sword or gun and create it in Game-maker 3D from first person view takes a lot of steps. You will have to have drawings of the object, point to the object with the camera, run the program, and have collision detection and finally performing the object to what you want it to do.


What is another name for a sail maker?

Another name for a sail maker is a "sailmaker" or "sail engineer." In some contexts, particularly in traditional maritime settings, they may also be referred to as a "canvas worker" or "canvas maker," as they often work with various types of fabric and materials to create and repair sails.


Is there an internal variable for an object's speed in Game Maker?

Yes, the internal variable for an object's speed in Game Maker is <Object_Name>.speed.


How do you make an object act differently if it hits the side of another object insted of the top or bottom in game maker?

It's a complex question. Using math, you can determine which side it collided on.