with (instance_create(x,y,objecttobecreatedbehind))
{
depth = objectinfront.depth + 1;
}
First Make a Sprite of the question make it an object, same with the answer
Change to another object with the same sprite
Create an objectSelect the spriteTick the Solid boxAlso, when an object collides with it, set the speed to zero.Simples!
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.
in code:move_towards_point(object.x,object.y,speed)
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 producer would be: maker, manufacturer, creator, or builder.
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.
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.
Yes, the internal variable for an object's speed in Game Maker is <Object_Name>.speed.
Create a bullet object and then use Create Moving Instance (I think that's what it's called)Should hopefully soon be merged with How_do_you_make_a_player_shoot_in_a_Game_Maker_gameUntil then, check out the answer over there.
A sprite cannot do anything. If you meant "How do you make anobject shoot in game maker 7?" then it's easy.Create an object for your bullet and give it a sprite. Then in the object you want to shoot the bullet add a "create instance with motion" actionwith the bullet specified.Alternatively you could use a "create instance" action and then add an on creation, "move" action to the bullet.