Figured that i should rather start a new post with a new problem. First problem: I am using bullet plugin (https://qiujiu.itch.io/qj-bullet-plugin), and during certain event it calls the HP bar that is stored as a picture in img\bullets folder. The code that summons picture in event looks like this:
Figured that i should rather start a new post with a new problem.
First problem:
I am using bullet plugin (
https://qiujiu.itch.io/qj-bullet-plugin), and during certain event it calls the HP bar that is stored as a picture in img\bullets folder.
The code that summons picture in event looks like this:
The problem is that there is also a code that updates the picture, lowering hp bar when event takes damage. And if the player character moves, the hp bar moves to a new location when updating. And i don't want that, it looks bad and covers enemies.
This is the code for picture update.
I tried to solve that with another plugin - TTK fix picture (
https://forums.rpgmakerweb.com/index.php?threads/fix-picture.50594/)
It should fix all pictures that have FIX as prefix in their name. But it does not work. I assume there might be 2 possible reasons:
1) it only fixes pictures from the pictures folder, and unable to work with bullets folder.
However, in the original post where i tried to solve different issue first (
https://forums.rpgmakerweb.com/inde...to-the-conflict-of-using.176437/#post-1505791) and the ShadowDragon suggested a code that would replace folder images are taken from. It did not work - so either this is not the source of the problem, or maybe it's one of two sources.
2) Perhaps, it only fixes pictures after event gives them coordinates to be fixed to, and it does not work when coordinates given via script call? I don't know how to test that.
There is also a second problem - the event also creates text "Wave" with changing number of waves. I HAVE NO IDEA HOW ITS BEING DONE! This is the code for it -
It seems like it calls the image called Wave but THERE ARE NO SUCH IMAGE in any folder of the game!
But that image is also shifting along with the camera, appearing in new places when updated just like the hp bar.
I tried to change both parameters called "wave". Chanding top one makes it so previous instances of the image is not deleted when new ones appear, so you soon will have waves all over the screen. Changing bottom ones does nothing at all.
I also have another theoretical solution but don't know how to implement it.
Because you know what does not shift? The hp outline.
It's code looks like this -
And it's always stays in place. It does not even require plugin to stay fixed! Why? I have no idea. The code for appearance is exactly identical to the appearance code of the hp bar. Maybe it has some secret way to be fixed? Or it is not moving because unlike hp bar and wave message the outline is not updated? That is most likely the case, and in that case it is not a solution.
I have no idea why simply keeping two images in place are so damn complicated, and this is why i hate dealing with tech stuff. In writing i can solve any problem, but here i just don't know what to do, every path seems to be a dead end. Maybe someone else has any idea?