How to fix sprite overlapping with each other?

notalentgeek

Villager
Member
Joined
May 9, 2014
Messages
19
Reaction score
1
First Language
English
Primarily Uses
I made a hidden door event using a bookshelf. However, I saw that the sprites of the hero and the bookshelf are overlapping each other when the hero approached the bookshelf from right or left.

Does someone here know how to fix this?
 



 

Baka-chan

☆*:.。. o(≧▽≦)o .。.:*☆
Veteran
Joined
Dec 19, 2012
Messages
490
Reaction score
148
First Language
German
Because the bookself is bigger then 32x32. You could add 2 empty events (priority: same as character) to the left and right of the bookshelf. Then just add the same move route for those invisible events in your action triggered event.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV
Actually, I'm not sure that that would work. When I was trying to figure out what was going on with my event this is what I learned. If the graphic you are using is larger than 32 x 32, it centers it around a 32 x 32 space starting with the bottom middle. So with that bookcase it is taking the middle 32 pixels on the bottom half, and the centering a remaining 16 pixels on either side.

This is the image I made when I was trying to figure out how it was drawing the graphic, and the answer is, it is like the one in the top right. The pink is the bookcase in this instance and the black square is the "event" so to speak.

DrawEvents.png

That is why I made the attached character sheet with an "extra row". It is now centered over 3 tiles wide.

If you add blank events to either side, it will prevent you from walking directly next to the bookcase, because there will be that "empty" 16 pixels on either side still.

I hope my explanation makes some kind of sense.
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
Is it not just an incorrect passability set on the tileset? NVM... It wouldnt be if using the bookshelf as an event graphic. ..
 
Last edited by a moderator:

Tommy Gun

♩ ♪ ♫ ♬
Veteran
Joined
Jan 20, 2014
Messages
385
Reaction score
123
First Language
English
If you add blank events to either side, it will prevent you from walking directly next to the bookcase, because there will be that "empty" 16 pixels on either side still.
Right, but then how do you want it to work? Either you block the character from those tiles, or the character will overlap (or the bookcase will overlap the character). What's the alternative? The only other thing you could do is make the bookcase fill 3 full columns. I think the OP just wants to prevent the overlap.
 

notalentgeek

Villager
Member
Joined
May 9, 2014
Messages
19
Reaction score
1
First Language
English
Primarily Uses
In this thread I posted an image of a bookshelf character sheet I made for just such a purpose. It should take care of that problem for you. http://forums.rpgmakerweb.com/index.php?/topic/30735-sliding-bookcase/
Hey thanks it is working. :)



I do have some questions:

  1. How can you activate an event in front of the player if the player standing on another event? For example my hero goes to a room and he need to open a door in front of him, but he cannot do that because he also standing on transfer map event. How can you solve that?
  2. How can I add multiple event on a tile?
  3. How can I make a room remember its state? As you can see, goes into the secret door and when my hero went back the secret door returned to its original state.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV
Probably what I would do (and there might be more efficient ways) is right after the fade out but before the transfer, I would have the original bookshelf event erase using a switch and have that same switch activate a new bookcase event where you want it to be from that point on. Does that make sense?
 

notalentgeek

Villager
Member
Joined
May 9, 2014
Messages
19
Reaction score
1
First Language
English
Primarily Uses

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top