Electravirus / MV3D

3D RPG Maker MV Plugin
Other
101 stars 30 forks source link

Compatibility problem with Yanfly message core #3

Open Kingdo7 opened 4 years ago

Kingdo7 commented 4 years ago

Hello, I test your plugin and I found I compatibility issue with Yanfly message core + the pack extended message pack I gess.

I use it to create a buble above my character but like you can see in the screen, the text is below the screen and stay here. 3D mode: https://image.noelshack.com/fichiers/2020/03/6/1579362597-holly-shit-xd.jpg 2D mode: https://image.noelshack.com/fichiers/2020/03/6/1579362612-holly-shit-xd2.jpg

Well I don't configure the parameter yet so the screen are not good but I think is a good plugin, ^^. PS: I'm sorry for my English, it's not my native language.

YoraeRasante commented 4 years ago

Wow, took me a bit to notice the second person under the message... now that I saw them I found them in the bottom right of the 3d pic too.

Looking at extended message pack's code, it uses the event's screenX and screenY to find the position to put the window. functions other plugins also probably use that don't work on this plugin due to how the whole map is shown different - you can turn the camera all around after all. It also uses a function created in it, spriteHeight, to get the height of the event's sprite.

That means that Dread_Nyanak can fix this, and other plugins that do the same, relatively easy, just need to add to the Game_CharacterBase an aliased version of the screenX and screenY functions that send the current position of the character on the screen, and an aliased spriteHeight, just in case, to answer with the character's height adjusted for the scale and distance from the camera.

Kingdo7 commented 4 years ago

Oh, I'm sorry, I should post a scene more easy to see I didn't think of it.