User Tag List

Results 1 to 4 of 4

Thread: Removing one item from the screen?

  1. #1
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,304
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.79%

    Removing one item from the screen?

    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
    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...

  2. #2
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,612
    Level
    24
    vBActivity - Bars
    Lv. Percent
    99.95%

    Re: Removing one item from the screen?

    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;

  3. #3
    On top of the world ShadowTiger's Avatar
    Join Date
    Jun 2002
    Location
    Southeastern New York
    Posts
    12,231
    Mentioned
    31 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    29,580
    Level
    46
    vBActivity - Bars
    Lv. Percent
    60.37%
    Achievements It's over 9000!

    Re: Removing one item from the screen?

    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?

  4. #4
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,304
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.79%

    Re: Removing one item from the screen?

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social