User Tag List

Results 1 to 7 of 7

Thread: Item TileWidth and TileHeight set via Item Editor

  1. #1
    Keese ywkls's Avatar
    Join Date
    Feb 2016
    Posts
    62
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    476
    Level
    7
    vBActivity - Bars
    Lv. Percent
    86.27%

    Item TileWidth and TileHeight set via Item Editor

    To change an item's tilewidth or height right now, you have to use a script. Not only that, but it seems to revert to 1 x 1 unless that is set every frame.

    Having an option in the item editor would make this much easier to do.

  2. #2
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.7%
    You mean for weapon->Tile* ? That seems like it would take some work, mostly because it would require changing the sprite editor, and the item editor, and meshing the changes.

    This seems plausible though, and it would be even better for the enemy editor, which seems like it would be less complicated to add this sort of thing.

  3. #3
    Keese ywkls's Avatar
    Join Date
    Feb 2016
    Posts
    62
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    476
    Level
    7
    vBActivity - Bars
    Lv. Percent
    86.27%
    Not weapon->Tile. Item->TileWidth and TileHeight can be adjusted, but they resist it very strongly.
    I can provide an example quest if that helps clarify what I'm taling about.

  4. #4
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.16%
    Example quest would be lovely.

    Is there any chance of a change in behavior breaking old quests?

  5. #5
    Keese ywkls's Avatar
    Join Date
    Feb 2016
    Posts
    62
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    476
    Level
    7
    vBActivity - Bars
    Lv. Percent
    86.27%
    Quote Originally Posted by DarkDragon View Post
    Example quest would be lovely.

    Is there any chance of a change in behavior breaking old quests?
    I've got one ready... but I actually discovered making it that the only problem seems to come whenever you try to hold up an item.

    When the item is made by the script as it's properties are set up right, it will attain a larger than 1 x 1 size and keep that until picked up.

    Naturally, the subscreen doesn't support graphics for this larger item; but when you set it where it will be held up when acquired (by setting anitem->Pickup|=IP_HOLDUP), it reverts back to the 1 x 1 graphics while being held up.

    So, this isn't quite the same glitch that I thought that it was. Should I rename the topic title to match? Also, do you want the script included with the new test quest, a link to a pastebin of it or for me to put it in the topic directly?

  6. #6
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.7%
    I wasn't aware that items reset every frame. I suspect this is to accommodate flickering, or some such nonsense. I will look into it at some point.
    @DarkDragon : Fixing this should not break quests. If they forced it every frame, setting it every frame won;t change anything, and for that matter, I have never seen a quest that used enlarged items.

    The pick-up animation is clearly an oversight, and has never been reported because no-one makes large items.

    I would ideally like to make tilehieght.width and such setting available without scripts, so I will be delving into this in the near future.

    This belongs in the bug reports forum, as the behaviour with item pick-up is absolutely a bug.

  7. #7
    Keese ywkls's Avatar
    Join Date
    Feb 2016
    Posts
    62
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    476
    Level
    7
    vBActivity - Bars
    Lv. Percent
    86.27%
    Quote Originally Posted by ZoriaRPG View Post
    I wasn't aware that items reset every frame.
    In case you missed my clarification earlier, I was wrong about this. If you simply create an item via script and set the TileWidth and Tileheight; it will appear on screen perfectly fine.

    However, whenever you hold it up; it reverts back to 1 x 1 no matter what size you set it to- unless you force it to retain the larger size every frame.

    I'm just adding this explanation in case you go test it later and discover like I did that this only applies when holding up an item.

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