0 votes

I’m working on a mouse shooter and would like to know how I would go about falling enemies.

I have an enemy that spawns, then follows the player, but I would instead like them to spawn by falling into the screen ( with a shadow to indicate where they are landing) and land on the ground. My game is not a platformer so I can’t use the “is on floor” function. Its a 2d top down and I can’t seem to figure out how I would do this. Hoping someone can point me in the right direction here.

Here is an example gif of what Im going for : https://ibb.co/zxzvrby

My game is 2d and the enemies are kinematic bodies

in Engine by (655 points)
edited by

1 Answer

+1 vote
Best answer

1) Just choose random spawn points on the dungeon floor.
2) Spawn shadows in those places.
3) Make the enemies translate from off screen to the shadow position (just translate y)
Important without collision or collision deactivated.
4) Once the enemies reach the shadow point activate the collision and enemy behaviour.

by (77 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 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.