I have a button in the inventory room where it will go back to the previous room.
I can set the action to keyboard check and it will follow the command and go to the room defined.
However, when i try to assign the action to a mouse press event it does not work.
Does anyone see any errors?
The following code is contained within the same object, i tried splitting the step command into a different object but still not luck.
execute code:
room_persistent=false;
global.inventoryroom=Inventory;
instance_create(550,30,button_bak_obj);
Step Event:
execute code:
for(i=0;i<=4;i+=1){
if (YoYo_MouseCheckButtonPressed(i, mb_any)){
if (instance_place(YoYo_MouseX(i), YoYo_MouseY(i), button_bak_obj))
{
room_goto(global.current);
}
}
}
Edited by ValmanwayGames, 15 May 2012 - 02:35 AM.











