Hudell / scripts

Rpg Maker Vx Ace Scripts
5 stars 3 forks source link

[Demo included] hold_item.rb : Icon's refresh issue #3

Open Zer0xxxxx opened 6 years ago

Zer0xxxxx commented 6 years ago

Hello, The following code makes the script have a strange behavior. image

It is an issue, especially in some use cases as a Zelda-like shop. hudell

Demo (requires RPG Maker VX Ace) : Hudell.zip


An event-making solution is to create an 'Empty' item in the DB and use the following code : image

But it makes a clipping effect (during 1 frame), which is relatively ugly. :/

Kind regards.

Zer0xxxxx commented 6 years ago

(new)

      if HoldItem.item_id > 0
        unless @item_pic.nil?
          dispose_item_pic
        end

I guess that my issue emanates from this: if HoldItem.item_id > 0...

Hudell commented 5 years ago

Based on the event you shared on the printscreen, the icon should be shown for 20 frames, then it should disappear for 20 frames and then show again.

On the second event, it should only disappear for 1 frame, as that is the time you put on the wait command.

It's been years since I worked with ace, so I'll have to reinstall it to understand properly, because based on the gifs it seemed to be doing what you intended?