Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Tutorials
#1

Custom Gravity - Properly walking on walls and the cieling

Archive: 8 posts


Hello,

Before I begin, I will mention that this logic can get a bit messy as far as naming. This said, you need to pay attention to which piece I am referring to when I say to do something, we will be using several controllinators that control a single sackbot, and if you don't pay attention you will get lost.

This sackbot is designed to show you how to warp gravity, and correctly present the sackbot AND function correctly. This tutorial is complicated a bit by the fact that I also show you how to do walls and ceiling so you can apply this to more than just the ceiling.

Lets begin shall we?


First, create a basic 2 wall, plus ceiling area to test in
http://if.lbp.me/img/ft/a3f4eaa509d610e1cb6b2e49e365d8a4ca982055.jpg
Next, create a "small" hologram square, you want it to be thin, on the front layer, and have a brightness of 0% (this will allow it to be invisible in play mode)
http://ie.lbp.me/img/ft/3ce7aa906f7b6ad017c462622278348150759ec3.jpg
Add a controllinator to our recently made hologram, set it to transmit with a frequency of blue
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45795&d=1370582938
Create a sackbot, and on the sackbots chip, add a tag. Make it orange and give it the label "Eye" (we will be using this to follow the sackbot rather than use cameras)
http://ia.lbp.me/img/ft/3cac0fdb08feca2dc07a1474b8897e12836109e3.jpg
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45796&d=1370583112
Now, add a follower to our controllinator: make its strength 100%, follow a tag instead, make the tag orange, and the label of EYE, also make its minimum range 0, and its maximum around 250. (really 250 is over the top for this test, but I prefer having the circle off the screen)
http://i6.lbp.me/img/ft/0862c99c5f95147ec39112ea0739764e6b8f1a62.jpg
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45797&d=1370583349

Now, if you unpause we will have a hologram, that follows a sackbot.

Make the controllinator invisible in play mode (sorry forgot to do this earlier)
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45798&d=1370583498

This is where things can begin to get confusing SO pay attention below to the system I will be using to prevent confusion
We will be adding 5 controllinators to the sackbot.
DO NOT change the one your editing unless I have a picture and a step showing that I am doing the same.
Put the controllinators in the same places, I do as to prevent you having confusion by what I call them

I have placed them in a "compass" type configuration, the center one will be referred as "master" and the others will be referred as "top" "bottom" "left" or "right" based on their location around master.
http://i1.lbp.me/img/ft/271c061a83aa6dcdd09d2032f57d4b91cb1c61fe.jpg
Now, make sure "master" does not over-ride the sackbot, however "master" does need to receive the blue frequency
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45799&d=1370583640
Next, make all the other controllinators (top, bottom, left, and right) receive blue AND override the sackbot.
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45800&d=1370583715

Now inside of master, add a selector with 4 outputs with inverted signal
http://ib.lbp.me/img/ft/eab16aa73e65bac0bf389e4afed4a4f061a0dfab.jpg
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45801&d=1370584198

Now, hook up the selector in the following order: (going from top to bottom on the selector)
- Hook up the first output to the bottom controllinators eject player slot
- Hook up the second output to the top controllinators eject player slot
- Hook up the third output to the left controllinators eject player slot
- Lastly hook up the fourth output to the right controllinators eject player slot
http://i4.lbp.me/img/ft/444ec441f494384ccdf6d1320129af46c1c1b398.jpg

Now inside of master add a microchip (we will use this to switch between the different gravities) Within said chip add 4 and gates.
http://ia.lbp.me/img/ft/0ca9fbba714466f6b008dae3285bb6362e542115.jpg

Now add 2 signal splicers to masters man chip
http://ia.lbp.me/img/ft/5badda77ce8acd6abfc19bed069c752691143d68.jpg

Splice both the left/right and up/down d-pad signals
http://if.lbp.me/img/ft/faf42920d708ca34d7d6710ddcea6d8d0264a401.jpg

hook the "X" (also known as the "cross") button to the bottom input of all 4 and gates within the extra microchip.
http://i5.lbp.me/img/ft/ce54cde7d754c4bad530b64b7a8b68561e622b1c.jpg

Now add the d-pad signals like so:
The top output in the left/right splicer into the last and gate
the bottom output in the left/right splicer into the third and gate
the top output on the top/down splicer into second and gate
and the bottom output of the top/down splicer into the first and gate.
http://ib.lbp.me/img/ft/06b2f0218de49ce9a27f7c81d81c5854ceb4d820.jpg

now just move the and gates over to the selector, they should align perfectly
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45780&d=1370575218

Now! we are done with master for now!

Open up the "top" controllinator and add an upside down gyroscope. (Use angle snap!)
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45781&d=1370576152

next add a mover that pushes up with a speed of 4, and an acceleration of 100%
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45782&d=1370576198
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45784&d=1370576260

then add an advanced mover, speed of 4, with acceleration at 100%
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45783&d=1370576225
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45785&d=1370576300

Do this for the other 2 directions (don't do this to bottom!) changing the stand alone movers and gyroscopes directions to match the direction that correlates with the wall you are trying to walk on!

We're almost done! Just a little bit to go

now hook each controllinators active signal into the power input of the movers and gyroscopes within the controllinators (also check and make sure your gyroscopes speed is at the max of 1,500)
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45786&d=1370579249

Open up master again, and lets create a microchip to work inside
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45787&d=1370579418

and 2 signal splicers and splice both up/down and left/right left analog stick inputs
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45788&d=1370579595

add two signal combiners, and invert the signal directions of each splicer
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45789&d=1370579805

take the inverted left/right signal and attach it to the input on the "top" controllinators left analog stick (its hard to tell in the image)
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45790&d=1370580164

take the inverted up/down signal and attach it to the input on the "left" controllinators left analog stick
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45791&d=1370580301

take the normal up/down signal and attach it to the input on the "right" controllinators left analog stick
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45792&d=1370580499

now, take the up/down signal and attach it to the "left" and "right" controllinators advanced mover up and down speed
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45793&d=1370580629

and take the left/right signal and attach it to the "top" controllinators advanced mover left and right speed
http://www.lbpcentral.com/forums/attachment.php?attachmentid=45794&d=1370581201

You now have a sackbot that can change the direction of gravity!

I did have an issue getting the left one to look the right way, I cant be sure if it was my walls or if it is an error revolving around that direction itself, let me know!

A small note:
When it comes to riding the left and right walls, it appears that sackbots have a level of "jump animation" area. When in this area, the idle animations don't run and instead it appears as if in mid jump, my suggestion is that if you use the left and right wall walking, that you push the sackbot above this level or put it in such a spot that the floor is far down, I have yet to discover if the field is based on ground directly below sackbot or when the sackbot originally leaves the ground, but I suspect it to be based upon the nearest object directly below the sackbot due to test involving the square button rather than the x button.

Also let me know how I did for my first tutorial!
2013-06-07 06:00:00

Author:
Unknown User


Awesome! I love how you managed to simplify this and keep it organized, for your first tutorial this is incredible keep up the good work

Btw Ive been working on something like this, and mine involves attract-0-tweakers, but they are all controlled from the bot, and I think that yours is much more crisp then the attracto concept, keep up the great work
2013-06-28 19:39:00

Author:
amiel445566
Posts: 664


Woah. Im not really going to use this for myself but this is a really great tutorial on how to do this. It seemed really well explained and there were so many pictures so the reader could follow along just well. Cool2013-07-25 04:15:00

Author:
Caliboy4599
Posts: 67


Hi Cgpice, beautifully made tutorial, easy to follow and detailed. Well done.2013-07-25 13:24:00

Author:
Sean88
Posts: 662


Haha nice tutorial! I made something similar to this before but never used!2013-07-26 15:07:00

Author:
Five-Ate-Five
Posts: 197


Smart idea. Its too long!2013-08-06 18:03:00

Author:
Unknown User


Out of curiosity, I tried this and despite having followed your instructions, nothing worked properly. My sackbot walks in the wrong direction when he is on the roof, and walk both the same directions when on a left or right wall... And inverting the signals doesn't work either: it just makes the sackbot running without moving. And he always dies crushed when he hit a corner.

There is surely something wrong in some of my inputs or outputs, but I still can't figure where. Could you provide a picture of the finished product, with every chip opened and every cable color-coded? It would certainly help.

I'm working on my own solution (for another idea I had in mind some time ago, but needed a custom gravity too), but I'm not satisfied entirely because the transition between walls isn't as smooth as I wanted.
2013-08-10 04:42:00

Author:
Djibees
Posts: 189


Out of curiosity, I tried this and despite having followed your instructions, nothing worked properly. My sackbot walks in the wrong direction when he is on the roof, and walk both the same directions when on a left or right wall... And inverting the signals doesn't work either: it just makes the sackbot running without moving. And he always dies crushed when he hit a corner.

There is surely something wrong in some of my inputs or outputs, but I still can't figure where. Could you provide a picture of the finished product, with every chip opened and every cable color-coded? It would certainly help.

I'm working on my own solution (for another idea I had in mind some time ago, but needed a custom gravity too), but I'm not satisfied entirely because the transition between walls isn't as smooth as I wanted.
I'll almost guarantee you didn't properly invert the walking signals.

Also, the way I do this is that the advanced movers all have a battery with a partial downward signal
that just turns off momentarily when you jump. Of course, i do this for animated characters, not sackbots.
2013-08-11 16:18:00

Author:
Tynz21
Posts: 544


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.