User Tag List

Results 1 to 2 of 2

Thread: Removing Items Through Scripting

  1. #1
    Octorok
    Join Date
    Jan 2007
    Age
    38
    Posts
    143
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,172
    Level
    11
    vBActivity - Bars
    Lv. Percent
    73.68%

    Removing Items Through Scripting

    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?
    Programmings my game because I program games.
    "Wait. You lost me at the part about the 'almost certain death'." - A quote I would love to make in an MMORPG.
    Disclaimer: Din's Fire does not make the user immune to the effects of lava. Do not use Din's Fire in mid-jump over a pool of lava. Death and severe burns will follow.

    ZCG Current Version:
    Version 0.05
    For Mac Build 1076 Windows Build 1082

  2. #2
    Octorok Elmensajero's Avatar
    Join Date
    May 2008
    Age
    35
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    850
    Level
    10
    vBActivity - Bars
    Lv. Percent
    18.47%

    Re: Removing Items Through Scripting

    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.

    Code:
    Screen->ClearSprites(SL_ITEMS);
    Looking for the newest 2.5 content? Check out CZC for quests, demos, scripts, and more!

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