0 votes

I've got a problem trying to make this work. I've got a character able to go under this overpass. Easily done with Z-index, BUT I want to also use the stairpath on the left to go ONTO the overpass. I'm not sure how I can do that efficiently. Especially since I'm using tilesets.

My main problem is collision. ESPECIALLY if there's a monster on the overpass, you shouldn't be able to collide with it unless you go ONTO the overpass. Any ideas?


in Engine by (181 points)

1 Answer

0 votes
Best answer

You can have a pair of Area2Ds at the entries / exits masked to enemies and players. When touching one heading out, it would set their Z-index to the ground level number, and when touching the one heading in, would set their Z-index to the upper level number.

by (5,274 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.