1
Technical forum / Re: Problem: DropItem or SceneNode-Saving
« on: November 11, 2010, 03:09:34 PM »
Thanks, Mnemonic -- although my first thought was quite like "omg that sounds annoying like an orange!" it is a quite simple workaround in the end, actually!
I just have to put two lines at the beginning of the scene entity's script and changing the global var within the leftclick event. It works fine!
I just have to put two lines at the beginning of the scene entity's script and changing the global var within the leftclick event. It works fine!
Code: [Select]
global taken_aromata;
if(taken_aromata==1){this.SetSprite(null);}
//... setting "SetSprite" to null may not be the most elegant way to solve it, but it works more flawless than trying it with "Active".