Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+4 votes

I currently have a boss character that purposefully moves very slowly. However, when the player runs into it, it pushes the boss backwards slowly. How can I change it so both the player and boss keep their speed, but the boss doesn't get pushed back?

asked in CSC380Jan2024 by (1 point)

5 Answers

0 votes

Have you tried setting the boss to grounded?

answered by (1 point)
0 votes

I think you should use a KinematicBody2D if you want more physics options such as mass

answered by (1 point)
0 votes

I think Godot lets you set the gravity for the Body2D by yourself in the inspect tab.

answered by (501 points)
0 votes

With 3d a 3d rigidbody object have a variable mass that you can set in the inspector, Id have to imaging a equivalent 2d body, probably a kinetics body 2d, would have a similar variable

answered by (1 point)
0 votes

maybe try to adjust the mass property

answered by (1 point)
...