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,734
Reaction score
2,088
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,734
Reaction score
2,088
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,734
Reaction score
2,088
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 Posts

Latest Profile Posts

Unfortunately, while trying to run an app I needed (curse you, Adobe!), my laptop blacked out, so my data got wiped when I got it repaired. Stuff like facesets are saved in my drive, but my sprites now only exist as screenshots I've taken in the past :kaocry:To be fair, I'm a little relieved, since I've been feeling unsatisfied with the visual style of the character sprites, and I guess I can now revamp them?

after lot's of edits to Mike's attacks (to make it seamless with movement, no EX versions, cost 1-ups), I finally got combo skills to work. had to do a lot moving tho to get the combo list to appear where it is lol. that actually took longer than setting up the moves.
What's kind of amazing is I've been in a developmental rut for the LONGEST time but putting a music mix on of video game soundtracks and specifically hearing the VX Ace music come up and it's nostalgia of me being excited to make my first game has REALLY got me going again!
Finally finished my tiefling!
F222514F-9F32-4B97-88C3-664E8A2134C3.gif

Forum statistics

Threads
122,029
Messages
1,145,960
Members
160,291
Latest member
arnvrl
Top