Visually carrying items - looking for solutions

Hey everyone,


there has been something on my mind for some time now and I hope you can point me in the right direction for this "problem".


What I want to do is the following: I want the protagonist of my game being able to pick up items lying on the floor (check), store them in the inventory (check) and - that's the crucial point - visually carry selected item over his head. Like in Harvest Moon games or similiar incarnations.


Of course I'm well aware that I can make sprites for every item out there, but because the character should be able to carry almost every item available, it's getting tedious in a way I wonder if there is no better solution available. The method with designated sprites has some advantages, too. So this is my emergency solution.


Would it be possible to use events for this? I basically know how to do it that way, but the problem I encountered was that the event didn't follow the actor accurately. For example, if the player was facing a wall, still pushing in this direction, the event would move through the wall while the player stands still. Additionally if the player would start to run, the event would drag behind, not adjusting its movement speed. Yes, you could disable running while carrying an object, but the greatest problem stays: When holding buttons instead of triggering step by step, the event would outpace the actor at some point.


Another thought (I doubt would work) was to show a borderless, invisible message box above the actor displaying only the corresponding item icon. It would be very comfortable to pick the right item because I'm already working with the item ID, but I imagine such a text window would have a fixed position on the screen, so that it would not follow the actor if he approaches the map borders.


In my case it's only items I want the player to carry around, not armor or weapons. It would be great if I could simply show the corresponding item icon above the players head.


Any other ideas on how to solve this problem?


Thanks for reading!
You could Show Picture, with x and y relative to the x and y of the Player position. This way you only need to change actor graphic to one raising its arms.
Oh, I haven't thought about that!


Taking a first look at this method, it seems pretty neat. It's a sleek and easy solution. The problem of the graphic lagging behind in those areas where the player leaves the center still persists, even if I abstain from Waits in the Parallel Process, but it's not all that bad.


Thank you very much for your input!


Nevertheless other ideas are still welcome 🙂
Probably doesn't achieve your exact wants but Yanfly has a plugin that allows you to have items appear in the balloon icons above sprites heads.

This way the balloon icon will stay above the player at all times. You can customize the balloon icon as well if need be. Just a cheap way of achieving this 😛
Hey Hyreal,


thank you for your input! Are you sure you can make those balloon icons stay?


Yanflys plugin was one of my first thoughts, too, but as far as I could tell the balloon icon would behave just like a regular one. Popping up over the character, displaying the icon for a few seconds and then disappearing again.


The method with show picture seems to work really well. One small downside is that you have to make seperate images in pictures for every icon, but you can move those as you wish, saving you from creating even more character sets. Only thing I fear are framedrops later in the game because of too short wait commands in the parrallel process or interferences with the UI which I have yet to create...
As long as you don't mind the Item in the Balloon itself being animated then yes, the balloon icon will reappear instantly after closing. It doesn't look bad imo and is a very simple way of showing a item the player is carrying.



You just make a Parallel event on the map along with the Item box being ticked to only show once you have the item you plan to carry, the balloon will then appear and stick to your head everywhere you go until you remove the item from your inventory. Keep in mind you will have to make a Parallel event on any maps you plan to carry the item through.

Not the greatest way but hey, if all else fails you got this? xD

carrying item.png
Ah, yes, yes, I see!


I think this could be a very convenient solution, so long as animations are not that important for the game. Plus you don't need extra images for the items!


Now I'm wondering what happens if you clear the balloon image. With a blank ballon.png the icon should be displayed on its own, shouldn't it?


But in such cases where you have to put events in every map or if you have to copy and paste whole content from event to event, it's generally better to use Common Events/Calls.


Thanks for the clarification. I haven't thought about putting balloon icons in parrallel processes 🙂
As far as I'm aware the plugin command calls upon the balloon icon image that Yanfly provides and has you place in to your system folder.

I tested it without the balloon Icon image in my system folder and it gave some very horrible results.


If you just want the item to show but no balloon you would probably have to just use an image of transparency called EmptyBalloon.png instead of the one yanfly gives you.
I'm not sure if this will work but I attatched an image for ya if you wanna give it a try.

Just save it over the picture Yanfly provides with the plugin.

 

EmptyBalloon.png
Hi I don't know if you find a way, I see your post and I think that I can really help you !!!

I use the Chrono engine for my game (awesome plug-in..) and he allow that ! Create items that you can pick, stock, throw etc...

You should see that 🙂
https://atelierrgss.wordpress.com/rmv-pick-up-and-throw/

Chrono engine is also on his web site and you should see in the demo the Bomb object, you can pick up and add to your inventory, and drop it, throw it and throw it on objects with effect.

Bye !

Original thread: https://forums.rpgmakerweb.com/threads/visually-carrying-items-looking-for-solutions.70899/