0 votes

I've been using godot for maybe a month, so now i'm trying to make a Megaman Fan game. And just like in Megaman, i wanna that in my game, when a enemie dies, he'll drop a little consumable item that spawn at the enemie position and then fell until it hits the floor.

I have used an Area2D node to create the item, and it worked, the problem is that i don't know how to apply gravity to that Area2D to make the item fall. How do i do that?

Note: Forgive my English, it's not my mother language

Godot version v. 3.3.2
in Engine by (39 points)

Update: If anyone here still have the same problem that i had. Watch out for the collision mask task bar.

1 Answer

+1 vote
Best answer

put the area2D in a rigidbody and give it add_central_force(Vector2(-10,0)

by (266 points)
selected by

Thank you so much for answer, you help a lot with that

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.