So this code worked for me but after an update it started messing up. I want to randomly spawn an object with in the room but it spawns in the same pattern every time. here is the code:
// Spawn pie (random(x),random(y),obj_enemy
that's my code...