Event offset by just a few pixels?

Status
Not open for further replies.

SMcNeill

Dark Dreamer
Member
Joined
Jun 15, 2021
Messages
27
Reaction score
9
First Language
English
Primarily Uses
RMMZ
As the title says, I'm wondering how one can create a set offset for an event to display on the map. For instance, I've got a nice picnic table displayed on my map, and I want to have an event that basically toggles whether food is sitting on top of that table or not. I've got my nice plates of food saved as a character set, but when they pop up on the screen, they're hanging about 4 pixels off the table. If I could shift them up by just a few pixels, things would look perfect, but as they exist now, they just look wrong -- as if they're ready to all tumble off the table at anytime.

Is there some easy way to move/offset a character (particularly a non-moving character, in this case)? Or what's the solution to an issue like this? Any advice?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,756
Reaction score
2,851
First Language
English
Primarily Uses
RMMZ
VisuStella's movement and events core has sprite offset notetags you can use for this.
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
848
Reaction score
707
First Language
English
Primarily Uses
RMMV
Shaz's character anchors works in both MV and MZ, and lets you displace sprites from their default positions with an easy note tag. It's tile-based, and the default is x=0.5, y=1. So if you'll want to change those by a fraction of a tile.

Left: normal chest. Right: chest with a <anchorY: 1.2> note tag.
 

SMcNeill

Dark Dreamer
Member
Joined
Jun 15, 2021
Messages
27
Reaction score
9
First Language
English
Primarily Uses
RMMZ
Quick question here then is: Is it free? If not, is there a free alternative?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,428
Reaction score
15,223
First Language
English
Primarily Uses
RMMV
Are you using the images from the tileset, or do you have them as character sprites?

If from the tileset, you can just move them up a few pixels on the tileset, as long as they don't start to overlap the tile above. Or if you have the space in your tileset, you could move them up so they use 2 tiles instead of 1, and set the top tile's passage setting to a star.

If you have them as character sprites and are adding them via events, putting a ! at the start of the name (either before or after the $ if you have one of those as well) will make it align to the grid, but leaving the ! out will make them be drawn a few pixels higher. Or you could create a character sheet where the cells are a bit taller than 48 pixels and set your sprites a few pixels higher than the bottom of the frame.

All of the above can be done without plugins.

The VS core plugins are free, and my plugin is also free. If you go the plugin route, which one you choose will be based on whether you already have VS plugins and whether you want to use any of the other features it provides.
 

SMcNeill

Dark Dreamer
Member
Joined
Jun 15, 2021
Messages
27
Reaction score
9
First Language
English
Primarily Uses
RMMZ
Thanks guys. I've been trying to stay away from the VS stuff, as it seems it might lock you into using *just* it, once it's installed. (At least, from what I've been reading on the forums, it seems that way.) That, and the the fact that they have sooo much juicy stuff on their pages to alter behavior and customize stuff, I'm afraid I'd end up going bankrupt buying additional features. (As well as increasing the complexity of the learning curve, as I sort out what the heck I'm doing with the program itself.)

Shaz's plug-in was simple enough to grab and install, and it's working fine and easily enough for my needs. I thank you for both writing it, and sharing it.

(I don't know if mods end up locking threads once they're finished, or not, but if so, you guys can consider this issue solved and completed.)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,428
Reaction score
15,223
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.



Yes, when your support question is resolved, just report the first post and say so, and the mods will lock it for you.
 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

A surprising number of plugins have appeared for MZ since last year. I'm currently making a "shopping list" so that I'll know what I need to test when I switch over to MZ later this year. Much of it is stuff updated from MV plugins, but there are also a good number of new things. It'll be fun to test it all out.
A little dental dilemma this week. One my temp crowns was sized incorrectly and needs some sanding. And dentist was out till Tuesday. Pain is minimal though. Hope everyone here is well. :)
Got like a sudden surge of wish lists overnight. :)
headshot_headshot.jpg
The theory has been proved. Based on an invisible image's data(the big red dot in the previous image), RM can identify different parts of an enemy and do something respectively. :kaojoy:

Forum statistics

Threads
115,382
Messages
1,089,449
Members
150,104
Latest member
Zwloky
Top