Hi all! I'm trying to achieve an effect of having a character sprite stand behind a fence when behind it, and be in front of the fence when in front of it. I've asked elsewhere and have gotten suggestions to use events or layers but VXAce doesn't appear to have layers (I'm relatively new so I'm familiar with layers such as A,B,C etc but don't think they can be switched between?) I tried to find other explanations for how to do this but couldn't find anything, so any help at all is greatly appreciated. Thanks so much! (Also if this isn't the right place to ask I apologize, I'm still new and this site is hard to navigate)
Making a tall sprite go behind AND in front of a "fence" object
RPG Maker VXAce SupportI know one Workaround:
If you use Events for the Fence, i mean selecting the Fence as Eventgraphic and than you just need to select as Priority: Same as Charackters in the Eventpage Setting. Than it is displayed like you want it to. In both cases.
If you use Events for the Fence, i mean selecting the Fence as Eventgraphic and than you just need to select as Priority: Same as Charackters in the Eventpage Setting. Than it is displayed like you want it to. In both cases.
I suggest using Neon Black's script here. All you need to do is set the terrain tag of the appropriate tile(s) to 7, or whatever number you set yourself in the script. If you're using a tile that's only one tile high, like the fence, go into the Four-Directional Passability settings on your tileset and remove the up and down passability.
what IS that fence? is it a B-E tile or an A2?
You basically need to have the fence high enough to have one block set to impassible
Then use the Large Sprite display fix to correct the fence when below it.
Then use the Large Sprite display fix to correct the fence when below it.
Ah ok, this is kind of working! The character can move over the top of the fence and go behind it. However the fence is still a passable object and I want it to be solid, is that possible with this setup?
Ah, it's a B tile - I forgot to specify
It should be, yeah. In your tileset settings, go to 'Passage (4 dir)' and remove the bottom arrow for your fence tile. My mistake, on my last post I said to remove both the up and down arrows, but I just tested to make sure and it works with just the bottom arrow removed.
Huh, it is still not working in that way - is there anything in the Neon Black script that I need to edit? I could find anything in their documentation that suggested that but there's probably something I'm missing here
I worked on this problem in 5 different games over several years and the only solution that always worked was the one Roninator2 suggested.
There shouldn't be, I copy and pasted it directly from their pastebin into a fresh project and it worked. Double check to make sure you have the fence's passage set to a star, passage (4 dir) with all arrows active except the bottom one, and the terrain tag set to the same number as in Neon Black's script. Otherwise I'm not sure what the issue could be.
Well, that's a shame. I was really hoping to have a 1 tile high fence since its only supposed to be that tall compared to the sprite. Not sure what else to do other than have it be completely impassable
Edit:
Maybe try:
Having a Invisible Maptile on Layer2 with correct Passability.
And on Layer 3 Putting the Fence Tiles on Star Passability.
Turn on your Plugin to fix Star Passability display fix for big chars.
And it should work. (Not tested)
--------------------------------------------------
Original Answer:
Than you need to make the Map Tile with the Arrows an invisble/empty one, which only has the passability setting O and the arrows but the down one removed.
Ontop of that Maptile you Place an Event with Priority Same as Charackters and the Through check Box marked. Choose as Graphic a Part of the Fence.
Now you have the correct display without any Plugins and you got the correct passability.
Only downside, every Fence Tile needs to be an Event. Depending on the Game you are creating and the Platform it is for, this might be a "Ok" or a "not Ok" Solution. (Edit: oh i just see that it should also work with your plugins without all this Events, i Edit the Idea above)
Maybe try:
Having a Invisible Maptile on Layer2 with correct Passability.
And on Layer 3 Putting the Fence Tiles on Star Passability.
Turn on your Plugin to fix Star Passability display fix for big chars.
And it should work. (Not tested)
--------------------------------------------------
Original Answer:
Than you need to make the Map Tile with the Arrows an invisble/empty one, which only has the passability setting O and the arrows but the down one removed.
Ontop of that Maptile you Place an Event with Priority Same as Charackters and the Through check Box marked. Choose as Graphic a Part of the Fence.
Now you have the correct display without any Plugins and you got the correct passability.
Only downside, every Fence Tile needs to be an Event. Depending on the Game you are creating and the Platform it is for, this might be a "Ok" or a "not Ok" Solution. (Edit: oh i just see that it should also work with your plugins without all this Events, i Edit the Idea above)
I will try this, but what do you mean Layer 2 and 3? Like B and C tiles?
A little more testing and I think there is a solution
This is still using the large sprite script mentioned above.
Hey, this works!! Though it's not the most elegant solution I am okay with using those blank tiles -- thanks for your help and I'll play around with using this solution. 🙂
Oh oh! I overread that you are using RMVX-Ace, my Solution with the Layers was with RMMZ in mind.
MV and MZ got 1 Layer more and MZ lets you choose the Layer directly.
The Workaround with many Events i mentioned, should also work in VX-Ace, but the other one does not.
Sorry, my mistake.
Original thread: https://forums.rpgmakerweb.com/threads/making-a-tall-sprite-go-behind-and-in-front-of-a-fence-object.157918/