Effect problem - Sprite under/over

Sleepizz

Warper
Member
Joined
Apr 30, 2021
Messages
3
Reaction score
0
First Language
English, French
Primarily Uses
RMXP
I am working on my current project and I'm having a hard time with a certain thing: sprites going over and/or under tilesets. The problem is not in fact, going over, its going under. I'm having problems understanding what makes a sprite go under a tile, because this is what i need, the only time I've seen this is while experimenting on my "understanding XP" file. Help?

Example of what i want:
oop.jpg
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,293
Reaction score
8,365
First Language
German
Primarily Uses
RMMV
it's in the tileset passability settings.
any tile with a star passability goes above the player, but needs another tile for the true passability below it.
 

Thefirelion

TheFireLion Game Studio
Veteran
Joined
Mar 25, 2017
Messages
147
Reaction score
46
First Language
Spanish
Primarily Uses
RMVXA
This is not a problem, so the engine works with respect to tileset, there are 3 types of basic passibilities in the database:
collision (x)
below the player (O)
above the player (*).
What happens is that the part of the leaves / branches of the tree are "above the player", but if you realize it, you will collide with the base of the tree trunk.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,818
Reaction score
14,979
First Language
English
Primarily Uses
RMMV
@Andar, @Thefirelion the OP is using XP. There is no star tile.

In XP, you have a Priority flag on your tileset. You can give a tile a priority of 0 to 7.

Tiles with a priority of 0 will always be shown behind the player.
Tiles with a priority of 1 will be shown behind the player when the player is standing on a lower tile, but will be in front of the player when the player is standing on the same tile or higher.
Tiles with a priority of 2 will be shown behind the player when the player is standing on a tile that is two or more rows below this tile, but will be in front of the player when the player is standing on this tile or a higher row, OR on the row immediately below this tile.
And so on.

Look at that tree on your tileset, with the Priority button activated. You will see the trunk has priority 0 (I think) and the leaves start at priority 1 and get higher with each row up.

This is what allows a tall player sprite to show in front of a tall tree while they are on the row below the tree, without their head being clipped by the higher tree tiles (something that does happen with every RPG Maker after XP), but as soon as they become level with the tree, the entire player sprite is shown behind all of the tree foliage.

This is one of the things I miss from XP, where all later engines have taken a step backwards.
 

Latest Threads

Latest Posts

Latest Profile Posts

The snowy mountains in my game are finally done... what a crazy journey.
I participated in the official video event collection!
Well I am infinitely upset that I finally got a good idea... after the Touch the Stars game jam is pretty much over.

Gather resources to build a spaceship to escape the apocalypse! It would have been cool....
Thinking that if I get MZ, I'll work on a new Project. How about instead of just an RPG, I make it episodic, like an anime? You might even get fanservice. Oh, but I need the right costume for the character.
"but what even is an API??"

Forum statistics

Threads
113,606
Messages
1,076,156
Members
147,609
Latest member
xshwarrior
Top