|
Hello guys, thank you for the attention with my previous doubts, my game is nearing completion thanks to you =)
However, I have come across another issue. My main character carries a weapon that he uses to hit enemies, and I intended to make it a static sensor. But, one of the enemies is a static body (its behavior is identical to the one of a vertical moving platform in classic sidescrollers). Since static bodies don't have their collision detected, one of them had to be a dynamic body. Thing is, if one of them is a dynamic body, gravity acts upon them, something I absolutely want to avoid.
Right now, I made the weapon a dynamic body and I am applying a force opposing gravity to solve the issue. Do you have any better suggestions?
Thanks in advance.
|