P
ProdigyProGaming
Guest
I am currently trying to make a drawing game and i am still fairly new to game maker.
I have made it so that when the left mouse button is held, an new instance is created drawing a line.However, when working with other colours, the layering is in the order of the the code. E.g
if Colour = 1
{
instance_create(mouse_x, mouse_y, objBlackColourLineSmall)
object_set_depth(objBlackColourLineSmall, -1000)
}
if Colour = 2
{
instance_create(mouse_x, mouse_y, objRedColourLineSmall)
object_set_depth(objRedColourLineSmall, -1000)
objBlackLineColourSmall is alwasy on top of objRedColourLineSmall. I do not want to set the depths to different values because then they will be in a set order.
what i want is the latest drawing to be on top regardless of what colour it is.
thanks,
Arron
I have made it so that when the left mouse button is held, an new instance is created drawing a line.However, when working with other colours, the layering is in the order of the the code. E.g
if Colour = 1
{
instance_create(mouse_x, mouse_y, objBlackColourLineSmall)
object_set_depth(objBlackColourLineSmall, -1000)
}
if Colour = 2
{
instance_create(mouse_x, mouse_y, objRedColourLineSmall)
object_set_depth(objRedColourLineSmall, -1000)
objBlackLineColourSmall is alwasy on top of objRedColourLineSmall. I do not want to set the depths to different values because then they will be in a set order.
what i want is the latest drawing to be on top regardless of what colour it is.
thanks,
Arron