Parallax mapping problem (collision and movement issues)

Hello hello!

I ran into a problem while working on my little game. I created a parallax map with 2 layers, a small farm with some fences and other stuff. You're supposed to walk around the fence, it works pretty well ...
rpgproblfsc7419n.png


... but at the same time you can't walk in front of the fence. When I give the fence square collision you can't walk inside the garden, but when I don't give it any collision you can walk straight trough it. This makes me very sad ): Of course the character should be able to walk in front of the fence, but also behind it, but NOT inside of it. The problem is that these are only 2 squares in the grid, so when I add collision to the fence I can't walk behind it which would be stupid, and when I give no collision at all you can run/clip through the fence which is stupid, too. :/ One thing I could to is giving the room in front of the fence collision, but that would create a HUGE empty space right there screaming "You can't walk here because ... reasons". :/

There's also the problem that the fence is the upper layer of my parallax map, so no matter what I do, when I want to walk in front of the fence my character will appear behind it:
rpgprobl2dtbx6kib.png



Same problem with another fence, you can walk behind it:
rpgprobl3qdv2a4xa.png

... and the only thing I could do to prevend the player to run through the fence is to give the ground before the fence some collision, but that prevents you from running around in front of the fence. You can't walk around the red space then:
rpgprobl4zu1z9ri2.png


I don't really know what to do. I picked up MV after a year again and I just remembered that I stopped working on my game because of these problems in the first place, I ran into the same issue a year ago with this:
rpg5dsoxamut.png

You should be able to walk on the stage, but you're only supposed to walk off the stage through the stairs. Again this isn't possible, because the only thing I can do to prevent the player from doing this is to give the space in front of the stage collision. But that would prevent npcs and the player to walk around in front of the stage ...

I don't know what to do and I guess that this is a common issue? Because I ran into that problem many times and I never figured out how to fix it. I also tried using the search function, but I don't really know how I should name this problem.^^

I know that there's this plugin called QMovement, but the plugins didn't work, the game wouldn't start and it showed some weird error messages.

Is there a way to give collision to the lines on the grid or something like this? Is it even possible to solve that problem with plugins or is deleting the whole garden and stage / blocking it with NPCs or objects that don't really belong there the only thing I can do because it's impossible? ):
First, the fence being above the actors walking below it is one of the disadvantages to using parallax mapping - everything "above" is usually a single picture, which means there is absolutely no way to split it for partially below or not.
(if you were using tile mapping, there are scripts/plugins to change the behaviour of the star tiles, but that won't work with parallax layers).

Second, passibility issues depend on what you're using to create passabilities. The parallax map will never have passability on its own.
Some people use invisible tilesets (which allows for maximum customisation including directional passability and ladder effects etc.), other use region restrictions (which is easier to use but has limits as it is only passable yes/no) or still other options.
Can you tell us how you set the passabilities in your project?
I had this issue with making bridges over animated water in one of my earlier attempts at practice. What I did was make the parallax part that had issues a part of the tileset. So replace tiles you are not using in B-E tileset with this fence here, then you can put the star icon on the top part and the X icon on the bottom part in your passibility settings in the tileset tab.
the fence being above the actors walking below it is one of the disadvantages to using parallax mapping - everything "above" is usually a single picture, which means there is absolutely no way to split it for partially below or not.
I know, but I thought that there's a way for the character to be "on top" while walking in front of the fence. Like setting every picture and layer in one square frame to the bottom and the character on top of it. :/

I used that tutorial: Creating a tileset with transparent tiles and drawing over the non passable ground! So I guess that I'm using region restrictions. Sorry for sounding stupid, I worked with RPG Maker before, but I'm still a little newbie.^^' I tried using the QMovement plugins, but it didn't work. Got lots of error messages :c

But I still ask myself how people deal with this problem, there are so many awesome interactive maps out there ... I guess that I'll try to put the fences right at the middle of the tiles so that the characters can't walk directly behind it. There will be a lot of weird non passable free space, but at least you can't run through the fence and while walking in front of the fence it won't go over the characters head.

I had this issue with making bridges over animated water in one of my earlier attempts at practice. What I did was make the parallax part that had issues a part of the tileset. So replace tiles you are not using in B-E tileset with this fence here, then you can put the star icon on the top part and the X icon on the bottom part in your passibility settings in the tileset tab.

Oh, I will try that out! Still have to figure out how tilesets work haha! The fence isn't perfectly in the middle of the tile, so I don't really know where to place that thing in the tileset. :'D
I recommend QMap, since it actually gives capability for walking behind an image and in front of it without having to be on the grid. Then use QM+CollisionMap to make a collision image for that map, which you can define in the map's properties window. (Link to the Q plugins page: https://forums.rpgmakerweb.com/index.php?threads/qplugins-latest-qabs.73023/)
The Q plugins aren't supported anymore, but in my experience they still do work (version 1.6.1), so the errors might be a plugin incompatibility.
The thing is that tilesets don't have to be. The default is yes, but you can make your tileset any way inbetween the lines, as long as it fits. Example below ^.^ The lines are roughly divided by 48x48 (one pixel off due to the nature of the line having to take up a pixel) But the lamp now takes up 6 spaces. This is bad for most cases because it wastes space, but for things like this it can work. You might just have to mess with the placement a bit.

Spoiler: Example
example.png
I recommend QMap

I wrote at the starting post that I wanted to use the Q Plugins, but I couldn't start my game with all the Q scripts enabled. :/ There are just so many, I don't really know what I need. I assume that I only need QPlus, QMap and QM+ColliderMap?
I have to find out how to use them. When I take all three plugins there is an error at the start saying "QM+ColliderMap requires QMovement 1.2.0 or newer to work", but I can at least start the game and run around my map (not sure if the scripts are enabled). I guess I need QMovement for them to work, but when I activate it it just says with another error "Failed to load data/ColliderMap.json". The game is starting, but I don't know if anything is working right because of the error :c
Yes, you do need QMovement, because QM+ColliderMap is an addon to QMovement. As for ColliderMap.json, I don't have any files like that, and I've never gotten an error like that. I'm also not seeing any references to "ColliderMap.json" in QMovement or QM+ColliderMap. Are there any other plugins that might be asking for "ColliderMap.json"?
You should also have the Q plugins in order as QPlus, QMovement, QM+ColliderMap, then QMap, for best results.
If you're using Yanfly's plugins, put the Q plugins underneath Yanfly's.
I don't know what the problem is, these are the running plugins (I also tried putting OrangeMapshot and TDDP beneath the others)
plugs0gl6fam5.png


plugs2btg2oia3.png

But at least it works somehow, the characters are moving grid free^^

Edit: Okay, so I tried it again. I created a .png file and put it into the Parallaxes folder, I also wrote the cm:nameofthepng into the map properties and it worked! I can walk behind the fence and also in front of it. Now I only have to figure out how to set the tile in front of the fence behind a character that is stepping on that tile!

Original thread: https://forums.rpgmakerweb.com/threads/parallax-mapping-problem-collision-and-movement-issues.103607/