PDA

View Full Version : Removing Items Through Scripting



HeroOfFire
10-26-2008, 08:34 PM
I'm trying to remove an item from the screen through scripting, but I can't seem to actually remove it. These items are spawned from scripting in the first place, so they do not disappear automatically. Even if I move it to positions offscreen such as -32, -32 or 288, 208, Screen->NumItems() continues to count them. Is it even possible to remove an item completely without giving it to Link or changing screens? Or am I just not moving the items far enough offscreen?

Elmensajero
10-26-2008, 11:35 PM
You can try this, however it will remove all items on the screen (like rupees, hearts, keys, etc.) in addition to the specific item you are trying to remove.


Screen->ClearSprites(SL_ITEMS);