Fences, stars, and 4-directional passibility...

Status
Not open for further replies.

PitjePitjePitje

Veteran
Veteran
Joined
Nov 9, 2017
Messages
76
Reaction score
52
First Language
Not English
Primarily Uses
RMMV
I'm trying to make a fence that will 1) act like a fence (prohibits movement on one axis), and 2) looks like a fence (allows my character to walk behind it (this is mainly an issue for north-south blocking fences, for east-west I can place the graphic accordingly in the sprite tile and make 4-directional passability work).

I can't seem to get this to work with using a star-passability (there's no collision detection for the fence then), so my next best guess is regions + a parallel event checking player orientation? or just use individual events and execute a similar check on player touch?

If anyone has some insight (or yanfly-compatible plugins) I'd be very appreciative :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
you misunderstood what star passability means.
it has only two functions:
1) display the tile graphic above the player
2) ignore the passability of the star tile but use the passability of the tile under it (the A-tile placed there.

so you basically need to make sure that the A tile of the position holds the correct passability, using the star tile only for displaying parts above the actor.
 

PitjePitjePitje

Veteran
Veteran
Joined
Nov 9, 2017
Messages
76
Reaction score
52
First Language
Not English
Primarily Uses
RMMV
So you're saying another option is to make an 'empty' tile with the four-directional settings I want, then star-place the fence over it? That sounds a lot smarter than adding parallel logic/individual events :) thank you!

EDIT: yay, it works!
 
Last edited:

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,078
Reaction score
2,654
First Language
Greek
Primarily Uses
RMMZ

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top