Hi dude... It's fairly simple... You create a random spawning object. In it's create event it creates random monsters according to the room, guessing each room will be different zone, and each zone have different mobs...
So it's something like this:
let's say room 10 have 5 monsters in it, so in the spawn object create event you use:
monster=irandom(4)+1
irandom(4) will give you integer number from 0 to 4, then you go for a small if statement like this:
if(monster=1){instance_create(x,y,monster1)}
if(monster=2){instance_create(x,y,monster2)}
etc...
And you are basically done. Now all you need to do is place those spawn objects around the room. Now for the random movement - if you can use alarms just set alarm to random(90) this is max 3 seconds, in the alarm event you change the direction and set the alarm again for random(90)...
I can simplify this code much more, and make it better using arrays or even DS_LIST, but i'm showing you this form, so you can understand what is what and what is doing what.
GL and when you are done - i wana play it. I love RPGs
PS: If there is something you don't understand - just ask.
Thank you so much!
I really appreciate your help and sure I will message you when the game is done or when you can test it (if you want to (: )



Find content
Male
