0 votes

Hello guys, I was making a pit. The pit is a single sprite(one frame), and I want to make it slowly fall out when the player or enemy enters it, but is there a way to make the part outside the pit invisible? pit's Area2D node. Without it, I wonder how to make it efficient and impressive. Thanks for the advice.

link of image
https://drive.google.com/file/d/1uJ-fb8SF7nSZEEIFgu2SNdLvgyE5EXkJ/view?usp=sharing

Godot version 3.3.1
in Engine by (43 points)
edited by

You can probably use a shader to do this, but I'm not exactly sure what you mean by the part outside the pit. Can you show an image?

Sorry, I just upload link of image.

You can use an image-editing software to remove the background of your image.

This is already removed the background, What I'm wondering is, is there a way to make this pit fall when a player or enemy comes in contact and make the player or enemy sprite invisible, starting at the foot? Or do you have to do it like you're going to get rid of the whole? Sorry I'm not good at English and I used to translation

I think you can use a shader like this one.

Thank you, I will use it

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.