Hi, I have a player who can’t go to the right, neither to the back, nor to the left… he can only move forward, turn and turn around… that means he can move forward with any key. It suits me well, but I try to make sure that my player can pull objects like a chair, a table etc…but I don’t know what to do…so I had the idea to define my player as a parent to the object…his moves work well but the move forward/turn disturbs…Basically if you know the game “little nightmares” I would like to do the same thing as when the girl pulls furniture
Parenting the object you are dragging, along with an offset from your origin, should achieve the specific effect above in the video. What part of the scripting are you having difficulty with?
No, the video came from me.
at 24:04
that’s what I’d like to reproduce.
Well, the effect shown in the video is is achieved by doing something along those lines:
While some button is pressed to “pull” the object, 1) move the object towards the player when it is more than a certan distance away and 2) make the object (smoothly) rotate around, such that it always more or less remains the same relative rotation to the player as it had when you started pulling.
In your game however, you said that your character can only move forwards. So by definition, we can not recreate this effect, unless i misunderstood you. So you need to describe more precisely what about the effect it is you want to copy.
hello, in fact my character reproduces exactly the same movements as in this video… in this “little nightmares” game we can’t back up too, just move forward and turn
But… the character in the little nightmares video you posted definitely moves backwards. It’s the difference between pulling (following character motion) and pushing (physically accurate prediction of movement). Unless i’m missing something, then pulling things seems way easier than pushing them in a realistic looking way.
Maybe i’m completely missing the point here. I feel like we are talking past each other, and if so i’m sorry for that.
I understand what you’re saying, but I’m saying that the little nightmares character can move forward and turn, yet the moment she pulls the chair, she can move back… and that’s what I’m trying to reproduce with my character, he too can move forward and turn, but I don’t know how to make him pull objects as well by moving back.