Game Maker - How to make an Object spawn Randomly within the Room?

ChrisDRob

New member
I've tried

Step
With chance of 1 out of 10 do before the next action
Create instance of Object1 at position (x=random (room_width),y=random (room_height))
It just spawns the object in the top left hand corner. I'm new with game maker. What should I do with this?
 
Back
Top