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
32,818
Reaction score
8,228
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
129
Reaction score
41
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,452
Reaction score
14,815
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 Profile Posts

Oof, this "side project" of mine is starting to get as complex as a VS plugin, at least as far as plugin parameters are concerned. I think I now understand why a plugin like this doesn't already exist(that I know of). Learning a lot while trying to make it work though!
Had apparently not checked Itch for 3 months, kind of forgot I had an account rofl.
One side of me is: "lineart is so awful", the other side is just: "huh, decent" :kaoswt2:
Uehu8tg.jpg
[IMG]https://i.pinimg.com/originals/db/0a/86/db0a869a83b3d905c5a7ddec690506f2.png[/IMG]
Female SpaceSuit [!PHC]
image_2021-06-13_213812.png

Todays Lesson: Tiles are a pain to make xD

Forum statistics

Threads
112,209
Messages
1,066,573
Members
145,812
Latest member
breadpan
Top