P
PWL
Guest
Quick question. Are variables supposed to carry over with persistent objects, or are they deleted when I chance rooms?
And if they are destoryed, why do I need persistent objects if I have to use global variables anyway?
And if they are destoryed, why do I need persistent objects if I have to use global variables anyway?
Code:
// Create event
currentRoomX = 5;
currentRoomY = 5;
room_goto(room_level);
Code:
// Room start event
show_message(currentRoomX); // <-- Instant error