So, I've been following the 2 hour Vampire-Style Game Tutorial and I ran into the problem where the slime mob sticks to the player and also other objects, like the pine trees. The way they stick is they just snap to the side of the player and line up, which really messes with the movements too and causes a jittering.
I followed the solutions I've seen where I either disable all the Floor Layers on Moving Platform and change the mode from Grounded to Floating on both the player and the mobs, but nothing seems to change. I have the exact same problem no matter what I do, so I'm asking help here.
#Mobs sticking to Player and other Objects
8 messages · Page 1 of 1 (latest)
I don't know the code (I should probably one day do that tutorial just to help new people) but is there a way to disable movement in your code when target is reached or hit or what ever you use?
Hmm, maybe, I can try. I just don't know what's different, since I followed the tutorial pretty closely
pretty closely or exactly? Also if you would provide the code it oculd perhaps help
Exactly
First, never (Never say never, but really there's rarely a good reason) use rectangular collision shapes, that can cause a result like this. However, if they are sticking very badly, you may be using move_and_collide() where you ought to be using move_and_slide(), instead. Just food for thought.
I've been here with this exact issue asking almost this exact question with almost this exact kind of screenshot before. If you can put up your script that is handling their movement, I'm fairly confident I can narrow down the issue, but it would also help to see what those collision shapes look like.