PDA

View Full Version : Removing one item from the screen?



Joe123
08-27-2008, 08:20 PM
So say I have item 'I'.
I want to get rid of him.
I->isValid() = false; or something would be nice =P

How do I do it :confused:
I can't seem to find a function for it in ZScript.txt
The only option I have so far is Screen->ClearSprites(1);, but I'd prefer not to remove all other items on the screen aswell if I don't have to...

C-Dawg
08-27-2008, 08:30 PM
Well, if the item is in Link's inventory:

Link->Item[whatever] = false;

And if its on the screen:

itemwhatever->X = -16;
itemwhatever->Y = -16;

ShadowTiger
08-27-2008, 08:41 PM
Yeah, what if you had a rupee that you didn't want within a box on the screen, but all other rupees outside of that box were irrelevant?

Are you talking about items like the sort found inside slashable bushes? Or special items?

Joe123
08-27-2008, 08:57 PM
Ah, put it at (-16,-16).
Thanks C-.

I meant an item that Link could acquire, that I'd created myself via scripting ST.
So more like a special item.
The only problem with my previous method was that it was getting rid of items like the ones found in slashable bushes.