Hudell / scripts

Rpg Maker Vx Ace Scripts
5 stars 3 forks source link

how does work custom_z ? #5

Closed Zer0xxxxx closed 6 years ago

Zer0xxxxx commented 6 years ago

OK, fine. I just created two files containing $game_map.events[1].inspect with and without the script and checked with DiffMerge what changed! I can write $game_map.events[1].z_config = 300 to change dinamically the z index of the event 001. And also change its viewport thanks to .viewport_config... but I can't do that with the "0" ID, nor with $game_player. :(

I'll try to implement custom_z for $game_player as this script does not for the time being.

Hello I would be glad to know how work custom_z... And especially if it would be possible to make some script calls in my events to change dynamically their Z.

Regards

Zer0xxxxx commented 6 years ago

Ok, I just copy and paste down the Game_Event overload and replaced Game_Event with Game_Player and it works fine.

I'll maybe try to make it cleaner, but for now I estimate that my issue is resolved.