![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Skydome |
Hello I am making a 2D RPG game and I needed help with making the collision work. I want my character to be able to move like this
But if I create a collison shape it causes a problem.
What is the best way to solve this? Should I make some kind of script in the func _process of the tree to track the player? Will that be too intensive especially if there’s too many trees like a forest map? Should I attempt to create a custom Ysort node which will also adjust the collision shapes of objects while Ysorting?
I also wanted to ask how to create selective collision. I want an object to collide with one object but not with other like projectiles that don’t hurt friendlies. I saw layers in the Kinematicbody2d and staticbody2d is that how you create selective collision? Because maybe selective collision shapes can solve this somehow?