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!
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!
