Hello, I had a quick question and I apologize for not going through the forums more thoroughly if this question has already been answered. Is there a way to make a visual counter on the screen? For instance, I have programmed to parts of a game demo I'm working on right now. In the first you need to gather herbs and the 2nd you need to gather liquid drops. For easy sake, lets say they need to gather 5. These are two different things that happen on two different occasions. While my characters are gathering these items, is there a way to code out the ability to show how many they have gathered on the screen till they reach the max resulting in a confirmation dialogue box? Like say a 0/5 Herbs to 5/5 Herbs in the top right corner of the game screen? Any help on this subject would be great because I'm figuring quite a bit out as I go along as it is and this help would make the game that much easier for players to know what to do.
Making a Visual Counter
RPG Maker VXAce SupportA solution I can think of is making use of RMVXA's variable feature. Name one of the variables "Herbs" and the other "Liquid" or what have you. Make sure each event that adds the extra item count up the respective variable so that the number of the item matches the number of the variable, and at the end, the event erases itself so that it won't appear on the screen again.
From here, you want some invisible events that deal with the variable number, as well as a picture for each number (0/5, 1/5, 2/5, etc.). Every time the variable counts up, the existing picture will be replaced (for the condition to work, have different event pages that occur in a parallel process with the condition "Variable ____ is ____"). To replace a picture, you set each picture to the same "priority" so that the replacement works. Make sure each picture has transparency aspects as well.
I'm willing to answer any further questions.
From here, you want some invisible events that deal with the variable number, as well as a picture for each number (0/5, 1/5, 2/5, etc.). Every time the variable counts up, the existing picture will be replaced (for the condition to work, have different event pages that occur in a parallel process with the condition "Variable ____ is ____"). To replace a picture, you set each picture to the same "priority" so that the replacement works. Make sure each picture has transparency aspects as well.
I'm willing to answer any further questions.
Original thread: https://forums.rpgmakerweb.com/threads/making-a-visual-counter.61952/