Topic was automatically imported from the old Question2Answer platform.
Asked By
abhinav
I have a player defined as KinematicBody2D. I want to create another node or body in such a way that it move with constant velocity or speed even if the player jumps on it. The player should not be able to stop or reduce speed or rotate the body, etc by jumping on it. Can you please help me to resolve this ?
Hey!
It seems to me this resource will do well to solve your problems.
Your question made me curious, because I realized I didn’t think I could do that either. Hopefully that does the trick.
I hope I could be of some assistance to you.
Maxwell
Please do let me know if the problem persists with this solution so that I can take the answer down, as to not mislead others
maxwellc055 | 2020-09-11 21:45
Thanks for the answer Max.
I got another way of doing this is by changing the current position of body moving up using below statement inside _physics_process() function :