Hello, basically I would like to know if my enemy can be pushed, but in the corresponding direction, and for my enemy to move like Mario’s shell does.
there’s a solution?
Is it going to be in 2d or 3d?
What I would do for 2d if I wanted it done in 10 minutes;
Overlap sphere on the turtle and mario, when they overlap if a button isn’t held the shell is pushed, if a button is held mario picks the shell up. To get the direction which the shell will go, compare mario’s X location to shell location, if marios X is higher then he is on the right of the shell, otherwise left. To move the shell I would trigger an overlap event in the shells blueprint that runs a function timer. The function will just add location to the shell and stop if the shell collides with something and the direction needs to change or mario jumps on it. You would also need to account for when the turtle is walking around out of his shell. 3D is harder to do so hopefully you are talkin 2d.
I’m doing it in 3d. I don’t want to make the turtle come out of the shell so faithful to the original game either . I am learning. but I think I would just leave it like that, that the shell just goes to one direction