RMMZ Player sprite offset plugin: does it exist for MZ?

Dark_Ansem

Veteran
Veteran
Joined
Jun 16, 2020
Messages
203
Reaction score
88
First Language
English
Primarily Uses
RMMZ
Long story short, I'm considering using TileD to make maps, with grid size 24*24. because of this, I'm likely concerned there will be player clipping.

MV had this plugin http://www.yanfly.moe/wiki/Event_Sprite_Offset_(YEP) to offset sprite position. I'm wondering if something like this already exists for MZ, or if someone would be so kind to make it.
 

Dark_Ansem

Veteran
Veteran
Joined
Jun 16, 2020
Messages
203
Reaction score
88
First Language
English
Primarily Uses
RMMZ
why thank you so much! and it works for every event, as in, is it possible to "batch it" or to apply it to every map event?
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,726
Reaction score
2,084
First Language
Portuguese - Br
Primarily Uses
RMMZ
why thank you so much! and it works for every event, as in, is it possible to "batch it" or to apply it to every map event?
Yes, it is possible, I can think of two ways:

1 - Using the following script call(like put an autorun event on the beggining of every map, and after the script call, erase the event):

JavaScript:
for(const event of $gameMap.events()){
    event.setCoordOffset(X, Y)
}

This will set the offset coordinates X and Y to all events on the map.

2 - Editing the plugin itself:

Open the plugin with any text editor, and go to line 783:
1642289357929.png

Change the numbers to the offset you want, and they will be the default ones ^^

[[[EDIT]]]
About option 2, it will be applied to all map characters: Events, Player, Followers, and events.
To apply it to only events, put the EventOffset.js file below my plugin. And then you can edit it to suit your needs.
 

Attachments

  • EventOffset.js
    110 bytes · Views: 2
Last edited:

Dark_Ansem

Veteran
Veteran
Joined
Jun 16, 2020
Messages
203
Reaction score
88
First Language
English
Primarily Uses
RMMZ
Thank you so much, I'll try it as soon as I wake up as it's late now.
 

Dark_Ansem

Veteran
Veteran
Joined
Jun 16, 2020
Messages
203
Reaction score
88
First Language
English
Primarily Uses
RMMZ
About option 2, it will be applied to all map characters: Events, Player, Followers, and events.
I think that's the one I need, look how they look here
 

Attachments

  • maperror.png
    maperror.png
    175.8 KB · Views: 11

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,726
Reaction score
2,084
First Language
Portuguese - Br
Primarily Uses
RMMZ
no but it's probably my fault, today I've had to multitask a LOT and probably failed at everything haha
I get it. I believe maybe you misunderstood what the plugin does.
As I can see, it indeed shifted a number of pixels on horizontal and vertical.
Maybe you can explain a little better what you want it to do?
 

Dark_Ansem

Veteran
Veteran
Joined
Jun 16, 2020
Messages
203
Reaction score
88
First Language
English
Primarily Uses
RMMZ
I get it. I believe maybe you misunderstood what the plugin does.
As I can see, it indeed shifted a number of pixels on horizontal and vertical.
Maybe you can explain a little better what you want it to do?
I want to offset all the events and PC so that they don't look too out of place in maps built on a 24*24 tile size, to avoid clipping.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,726
Reaction score
2,084
First Language
Portuguese - Br
Primarily Uses
RMMZ
I want to offset all the events and PC so that they don't look too out of place in maps built on a 24*24 tile size, to avoid clipping.
Well, my plugin indeed does that offset. But I don't think that will work as you intended it to work.
Maybe if you set
OffsetX = -24
OffsetY = -24

But that only offset the sprite Image, not the collision.

Maybe you need to find a plugin that changes the RPG Maker tile size instead.

But I don't know how that will work using the TileD.
If you are just importing the TileD maps as parallax in RPG Maker, I guess you could try using this plugin.
 

Dark_Ansem

Veteran
Veteran
Joined
Jun 16, 2020
Messages
203
Reaction score
88
First Language
English
Primarily Uses
RMMZ
Well, my plugin indeed does that offset. But I don't think that will work as you intended it to work.
Maybe if you set
OffsetX = -24
OffsetY = -24

But that only offset the sprite Image, not the collision.

Maybe you need to find a plugin that changes the RPG Maker tile size instead.

But I don't know how that will work using the TileD.
If you are just importing the TileD maps as parallax in RPG Maker, I guess you could try using this plugin.
I'm not heheh I'm using the VS plugin.

I'll have another look as soon as TileD plugin is updated, thank you so much for your help.
 

Latest Threads

Latest Profile Posts

Historically, "honor" isn't what has won fights. Being as brutally dishonorable and malicious as possible has done that. This is a tactic that works for any fight. Honor doesn't matter when you're the loser.
Mcniner wrote on Umbriel's profile.
Hello! It seems the Zelda sprites you sent me were removed by a moderator. Could you gmail them to me here: steinjaltman@gmail.com? Thanks!
Remember to do your 0,01% progress on your game today!
Went to see Jujutsu Kaisen 0 yesterday, it was cool. The movie wasnt really a masterpiece, it had some pacing and characterization problems, but overall I enjoyed it, maybe because it was the first anime film I have ever been to in the cinema lol. The battle animation & music were top-notch. I havent seen much of the anime so people who watched the entire season would probably like it more.

Forum statistics

Threads
121,996
Messages
1,145,772
Members
160,264
Latest member
diexue
Top