How to make a controllable cube that jumps and falls?
I'm sure this is super easy but I can't figure it out.
I want my player character to be a cube that slides on the ground and jumps when X is pressed.
I've managed to take control and move the cube with ControllerSensor-->Splitter-->AdvancedMover but it seems to lose all Gravity because it takes its Y Input from the Advanced Mover?
Hooking it up to a Puppet Sensor doesnt seem to work. "Jumping" is not explained in the Puppets themselves.
Help please?
-
Hi,
A few ways to do this.
If you've used the advanced rotator make sure you've turned of dampening in y as that will fight gravity.
Else just scope into a puppet and make it a cube by scoping into the pelvis and sculpting a cube.
John -
Ok, thank you for the advice!
I have no Advanced Rotator on the cube and I turned off dampening in Y in the Advanced Mover already because I suspected something like that. Ironically, my problem at the moment is that the cube will only roll over the floor and not "slide".
I managed to "make my own gravity" by just always moving the cube downwards, but I can't figure out how to do the jump yet (to interrupt the force applied after the initial boost upwards).
Im gonna try resculpting the puppet I guess.
Thanks again and please do take sundays off <3 -
Hi,
Sorry I meant mover doh!
If you use a signal manipulator set to pulse when on and give it a small smooth out number like 0.5
Wire the X button in to that.
And the signal manipulator into a normal mover set to up with no dampening on.
To stop rolling try reducing the friction amount maybe?
John -
Thank you, the signal manipulator is perfect!
Ok, I feel really stupid now but I forgot to mention that I took a rounded cube for aesthetic reasons. That must be the rolling issue. I will try to exchange its hitbox for an invisible square one to make up for that.
Iniciar sesión para dejar un comentario.