C
CreativeBand124
Guest
Hello guys!
I got a problem.
I make game similar to FTL and i need this for my crew members code.
So... i got script for rooms and crew members which are cloned obj_crew.
This is inside the room_script which are in draw event of gui_object.
This code it's for slots on my room scripts for the crew.
I need when the crew got inside the room the variable
global.free_room_slot =+1 once
-----------
Thank you in advance!
I got a problem.
I make game similar to FTL and i need this for my crew members code.
So... i got script for rooms and crew members which are cloned obj_crew.
This is inside the room_script which are in draw event of gui_object.
This code it's for slots on my room scripts for the crew.
I need when the crew got inside the room the variable
global.free_room_slot =+1 once
-----------
GML:
var inst;
inst = collision_rectangle(argument2,argument3,argument2+105,argument3+105, obj_crew, false, true)
if inst != noone
{
global.free_room_slot += 1
}else
{
global.free_room_slot=0
}