Master Cabalist
Member
So,
I'm having trouble with switching rooms. When I go into my alchemist lab from the main room and return to the main room, it doesn't spawn enemies anymore. Below is the code for the alchemist lab process flow. The main room is called the alchemist lab and the exit sign is used to leave the alchemist lab.
I'm having one more problem. I want the player to be able to click more than one object in the alchemist lab. Right now I can only choose one item and if yu leave and come back you can't pick that object again.
Cheers
Ted
// Only run the un-pause code if we [/CODE]
[EDIT]
Basically the problem in a nutshell is it doesn't spawn enemies if I use the alchemist lab.
Simple as that.
I'm having trouble with switching rooms. When I go into my alchemist lab from the main room and return to the main room, it doesn't spawn enemies anymore. Below is the code for the alchemist lab process flow. The main room is called the alchemist lab and the exit sign is used to leave the alchemist lab.
I'm having one more problem. I want the player to be able to click more than one object in the alchemist lab. Right now I can only choose one item and if yu leave and come back you can't pick that object again.
Cheers
Ted
Code:
/**********/
Exit Sign Object
global.a_choose = true;
mouse_enter = true;
///////////////////////THESE VARIABLES ARE TO PREVENTS "OVERFLOW" AND SO THE PLAYER//////////////
//////////////////////CAN ONLY CLICK ON ONE THING PER THING AT ONCE////////////////
global.non_usable = true; //?/
//global.can_click = false; //can you click on a item in the lab // ?
//global.can_click_myTimer = room_speed/2; //delay for clicking on the tab ?
global.alchemist_myTimer = room_speed*10; //timer for alchemist table
//global.clicking_myTimer = room_speed/15;
global.can_click = false;
global.alchemist_lock = true; //if alchemist lock is set, you can't click on the same place twice (keeops it from "overflowing"
room_goto(global.RoomBeforeAlchemist); //go back to main room
with (SimpleBrain)
{
depth = -1800;
}
[CODE]
ALchemist Table Object
a_choose = true; //you can choose one thing fromt he alchemist lab
//scr_save_game();
if (global.alchemist_lock == false)
{
room_persistent = true; //persistence for main room
audio_play_sound(AlchemistLabOpenSound, 20, false);
global.RoomBeforeAlchemist = room; //save main room
room_goto(AlchemistTableRoom); //go to alchemist room
draw_set_colour(c_black);
}
[EDIT]
Basically the problem in a nutshell is it doesn't spawn enemies if I use the alchemist lab.
Simple as that.
Last edited by a moderator: