0 votes

I am trying to create a game where the main concept revolves around the player having a centre of gravity that attracts enemies. The enemies would be slingshotted off the screen.

How might I achieve this? Even just a start, such as how to set out my nodes correctly would be useful. I am new to Godot and haven't got great knowledge of the coding language. Currently, I am using rigid bodies for enemies and have an area2d node set to point gravity for the player (not the actual player node tho - that's kinematic2d).

Anything about optimising my code would be great too if you're feeling adventurous :)

If you want a sample of my code, please ask

in Engine by (14 points)

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.