PDA

View Full Version : Making Top-Down Movement



MechaBob
02-21-2011, 02:23 PM
Have you ever wanted to make your sackboy top-down like in Foofle's 'Maximum Carnage' level. Well, this tutorial will show
you how to get started. There are a lot of ways to make top-down movement, this tutorial will make it so if you move,
you'll rotate in the direction you're moving but if you move the right analouge stick, you'll rotate in the direction the right
stick is positioned.
Please note this is my first tutorial.

Step 1:
Get out the following things: The Hologram material, a Controlinator and Cake
http://img13.imageshack.us/img13/8652/aphotoqx.jpg (http://img13.imageshack.us/i/aphotoqx.jpg/)
Once you done that, tweak the hologram and set the brightness to 0%. Make the Controlinator invisible in Play Mode

Step 2:
Go to the gadgets page in the Tools Bag and get out a rocket rotator and an advanced mover.
http://img88.imageshack.us/img88/6818/aphoto2b.jpg (http://img88.imageshack.us/i/aphoto2b.jpg/)
Place the mover and rotator on the Controlinator's circuit-board and wire the left-right and up-down outputs of the left
analouge stick to the left-right and up-down inputs of the advanced mover.There is no need to connect the rocket rotator.
So right now, your logic should look like this:
http://img834.imageshack.us/img834/1622/aphoto4.jpg
Now will be a good time to test the Controlinator.It should be able to move and when you do you'll rotate towards that
direction.
Be sure to tweak the rotator and mover until you get a movement that suits you.
Now it's time to go farther.

Step 3:
Go and get a joystick rotator. Tweak the speed and strength to the same as the rocket rotator then wire the outputs of the right analouge stick to the joystick rotator. We can see a small problem right now, because the rocket rotator is not
connected to anything, it'll be the dominent rotator and the joystick rotator won't work. Lukily, there's a solution. Place an OR gate on the circuit-board and wire the right stick outputs to its inputs and connect the OR gate's output to the rocket rotator.

Don't forget to invert the OR gate's output so if the right stick isn't moved,
the rocket rotator activates.
The logic should look something like this(minus the circuit nodes):
http://img594.imageshack.us/img594/2204/aphoto5j.jpg

(http://img594.imageshack.us/i/aphoto5j.jpg/)

And Step 4:
http://img191.imageshack.us/img191/7582/aphoto6b.jpg

(http://img191.imageshack.us/i/aphoto6b.jpg/)
Enjoy your cake.

And that's the end of the tutorial, I hoped it helped you and I'd like to see what you come up with.

Dremotion
03-21-2011, 07:07 PM
I keep getting a problem, where the rocket rotator forces my sackbots back forward instead of his front. Even tried flipping the contollinator around to no avail.

CheesyDemon
03-21-2011, 07:31 PM
I keep getting a problem, where the rocket rotator forces my sackbots back forward instead of his front. Even tried flipping the contollinator around to no avail.

Set your mover not to be on local space.

kvbkvb
03-26-2011, 09:30 PM
Nice tutorial. Just something to add; If you put a controllable sackbot in the "top-down" controllinator, then it looks like a very realistic top-down game, with what looks like real sackboys, just top down. :DDD

CheesyDemon
04-01-2011, 07:47 PM
and if you make the scakbot big with hair it hides the controllinator