BG1, PRELOAD BG2, PRELOAD

Page 1 of 2 1 2 LastLast
Results 1 to 20 of 25
  1. #1

    Default How to make a Sonic the Hedgehog looping

    O hai there! SonicKris here.



    If you have been around in Little Big Planet for a while you can no longer deny that Sonic the Hedgehog seems to be a very popular theme in community levels. Whether you love it yourself or not, let's agree that the one thing worse than a Sonic level is a badly made Sonic level. So here is my contribution to a better Little Big Sonic community!


    The hero

    Let's start out with Sonic himself, a sackbot that I dressed up in the Sonic outfit DLC.



    The basics are a block of 0% brightness holo with an invisible controlinator on it, set to transmit; then a sackbot that is not afraid to jump, skip layers and can make quite a speed for himself (150%). Plug the first chip on his board and stick two controlinators (DCS) on it. Here we will decide what default sackbot functionality we want to keep and which to discard; the left controlinator is set to receive the signal from the seat on the holo block and needs to not override sackbot behavior. The controlinator on the right is a plain one. All the behavior we wish to keep, we hook the output from the controls on the left DCS to the input of the controls on the right DCS. In the screenshot our Sonic will be able to move with the left stick and to jump with the X button.

    There is also a blue tag 'sonic' on the left DCS that gets activated by the Active output on the DCS. The DCS on the holo block follows this tag with a follower (activated by its own Active output).



    Now we add a chip. With this, Sonic will be able to sprint when the player keeps the R1 button pressed. However, since none of this is default sackbot behavior, it needs to determine which direction it needs to sprint in. We do that by adding another receiving DCS of which we wire the left stick's horizontal output to a directional splitter. Wire the outputs of this splitter to the inputs of a 2-gate selector. This selector will remember the last horizontal direction of the player.

    Next we create two basic movers, one set to a positive value on the horizontal axis for moving to the right and one with a negative value for moving to the left. Set both movers to local space so the direction is determined by the orientation of the sackbot instead of the global horizontal plain. I have set the movers to 75% acceleration and deceleration so Sonic won't instantly get up to speed. Before we activate any of these movers, though, there are a few conditions that need to be met, so we set up an AND gate in front of each mover:

    • The R1 button needs to be pressed; for this, wire the R1 output of that DCS to the inputs of both AND gates.
    • The player needs to be on the ground before this ability can be used; wire an impact sensor (tagged 'ground') to the AND gates.
    • Which mover gets activated should depend on the last direction of the player, so wire the outputs of the selector to each AND gate.


    Don't set the speed of the movers too high, else the bot can splat itself against walls or run past crucial bits without triggering them (which we get to in a moment). The movers here were set to 18 and -18 speed.


    The looping



    Create a shape as in the picture: a road leading up to the looping followed by half a loop. Tag this with 'ground', then duplicate it to the layer directly behind it and mirror it so both shapes line up and make a perfect looping. If you can, use the corner editing tool to make the half-circles as smooth as possible so Sonic will have less trouble crossing the ramps.



    We'll want several things happening here, so create a square of thin 0% brightness holo and place it in between the two looping parts. Place a chip on it in the exact center of the loop.

    • Place a game camera on this chip with a large sensitivity area and a zoomed out angle, so the player can see the entire loop when he enters it with his Sonic bot.
    • Place a tag sensor for 'sonic' on the chip that has a sensitivity radius the size of the looping, plus a fair bit (5-10) extra. Tag sensors are not ultra precise, you see.
    • The tag sensor activates a tag 'inLoop'. SonicBot will detect that tag so he can do some nice logic tricks while inside the loop.
    • The tag sensor also activates a danger tweaker set to plasma (no sound). This will turn the thin holo into dangerous material, but the sackbot will never be able to touch it; instead, this will prevent the bot from jumping between the two thick layers that make up the looping.


    This last bullet point brings us to the next important bit: cut a hole in the thin holo piece at the top of the looping; this is where Sonic will be changing layers back and forth when taking on this looping.



    Now, create another block of 0% bright holo, this time two layers thick, and place it through the hole in the thin holo shape. Stick a chip on it and place an impact sensor for tag 'sonic' on each of the looping pieces.

    We want Sonic to be able to run in both directions of the looping, so this requires our logic to determine on which of the two looping pieces Sonic currently is and when entering the 'gateway' holo block he needs to be pushed from one layer to the other, either forward or backward. Create two 3-port AND gates, stick an impact sensor for tag 'sonic' on the chip and wire that to both AND gates. Remember to set 'include touching' on this sensor to ON, because that is required on holo material. Then wire each of the impact sensors from the looping pieces to its respective AND gate.

    With what we have now, the following would happen: Sonic runs into the 'gateway' block and gets transferred from one layer to the other, only to be launched back and then forth again in an endless loop. What we need to do is to make sure Sonic has left the gateway block before he can access it again. So create a 1-shot counter with a NOT gate in front of it and wire the impact sensor to that gate. Wire this counter to both AND gates. Now, each AND gate will only be active if Sonic has first not been inside the gateway block; however, once he is in it, it needs to be used once and then disabled. So wire the output of both AND gates to an OR gate and wire that to the reset input of the counter.

    Wire each AND gate to its own tag. I named them 'pushBack' (top) and 'pushForward' (bottom). SonicBot will pick these up and move his prickly bum accordingly.



    Here we added another chip on SonicBot with two long range tag sensors, each wired to a layer mover. Sensor 'pushBack' activates the mover that send the bot back one layer, sensor 'pushForward' send Sonic forward one layer.


    Complications

    Everything works now. Or does it? We have a slight complication: when Sonic speeds up to take on the looping he slams into the curving floor and stops dead in his tracks. He might even kill himself from the impact. So, how do we make this a smooth ride?



    Remember the tag 'inLoop' in the center of the looping? We'll be using look-at rotators now in order to make the bot stay on the circular path we have created and not dive mouth first into the dirt. Though a single rotator improves Sonic's behavior a lot, what is even better is that we use two rotators; one for each direction Sonic is following, slightly angled so the bot anticipates the curving floor surface and not slam into it.

    We use the same setup as with the the Sprint chip: a receiving DCS wired to a directional splitter wired to a 2-gate selector. We'll be having two AND gates in front of two look-at rotators; I turned the top rotator 10 degrees to the right and the bottom one 10 degrees to the left. An impact sensor for tag 'ground' makes sure this behavior only occurs when the bot touches the ground. A tag sensor for tag 'inloop' (large radius) makes sure that the bot only tries to turn to this tag when it is actually active (else the look-at rotators will not find a target and lock the bot's angle).



    As Sonic runs into the looping and back out, for a short moment he will still turn his body towards the center of the loop. We can avoid this by adding an inverted tag sensor for tag 'loopBase' wired to each AND gate.



    Stick this tag 'loopBase' roughly at both entrances/exits of the looping. When Sonic runs through here, the look-at rotators will get disabled.



    Lastly, we wire the 'ground' impact sensor to a NOT gate and wire this gate to a gyroscope; this gyroscope will turn Sonic straight up again when he jumps or falls down. I set the gyro to 180 speed and 50% acceleration so the effect is not instant.



    Here you are! Enjoy your Sonic the Hedgehog looping!! You can find this thing in action on my earth.

    Good luck.


  2. #2
    Sackperson Sergeant fumetsusozo's Avatar
    Points: 29,778, Level: 53
    Level completed: 3%, Points required for next Level: 1,072
    Overall activity: 30.0%
    7 days registered Created Album pictures 100 Experience Points 250 Experience Points 30 days registered
    PSN
    fumetsusozo
    Join Date
    Jul 2010
    Location
    ~Across Nowhere~
    Posts
    3,913
    Blog Entries
    15

    Default

    looks cool, i'll go check out how it plays on your earth.
    hm while Sonic may be my all time fave character and series... i can honestly say i've not played a even remotely good sonic level on LBP.

    also i've been thinking of for a long while now of making my own super detailed Sonic tutorial... but not yet. but look forward to it later.
    though i'm not sure why so many people want to do loop logic for sonic. Sonic levels/games don't have to have them. but i don't create 1.1 remakes of games. so means if i would make a sonic level i would make 100% new zones. *mew

    Ok. posting again sense I just looked at it. it works ok... i can even fall if i stop running half way up it and that's nice IMO. however i noticed his feet stop working once he goes up the loop. and that would need to be fixed somehow IMO before i think someone should use it. *mew
    Last edited by Aya042; 01-29-2012 at 04:25 PM. Reason: dp
    Lets go on a fantastic Adventure!

    Spoiler Spoiler - <-My LBP2 Levels->

  3. Thanks!


  4. #3
    Sackperson Private Antikris's Avatar
    Points: 19,466, Level: 42
    Level completed: 58%, Points required for next Level: 384
    Overall activity: 0%
    100 Experience Points 7 days registered 250 Experience Points 30 days registered 500 Experience Points
    PSN
    Stellakris
    Join Date
    Nov 2010
    Location
    Amsterdam, Holland
    Posts
    1,374

    Default

    Quote Originally Posted by fumetsusozo View Post
    however i noticed his feet stop working once he goes up the loop. and that would need to be fixed somehow IMO before i think someone should use it. *mew
    Above a certain speed a sackbot will no longer use his legs. I could cut down on the speed but that would be un-Sonic. In the Sonic games, the character will display a whirlwind of feet peddling around when he starts to race. That is something that I think goes beyond the topic of this tutorial (it is already long enough), but if anyone feels they want to follow up with a how-to on Sonic feet, go right ahead; here in the comments or in a thread of its own.


  5. #4
    Sackperson Sergeant fumetsusozo's Avatar
    Points: 29,778, Level: 53
    Level completed: 3%, Points required for next Level: 1,072
    Overall activity: 30.0%
    7 days registered Created Album pictures 100 Experience Points 250 Experience Points 30 days registered
    PSN
    fumetsusozo
    Join Date
    Jul 2010
    Location
    ~Across Nowhere~
    Posts
    3,913
    Blog Entries
    15

    Default

    Quote Originally Posted by Antikris View Post
    Above a certain speed a sackbot will no longer use his legs.
    I noticed on flat ground they work fine. i put a mover speed of 50 before on my sonic bot and his feet still worked. have you tried mixing your loop logic with a Attract-o-tweaker? i don't have a loop logic right now so i can't say or not that may fix it. *mew
    Lets go on a fantastic Adventure!

    Spoiler Spoiler - <-My LBP2 Levels->

  6. #5
    Sackperson Private Antikris's Avatar
    Points: 19,466, Level: 42
    Level completed: 58%, Points required for next Level: 384
    Overall activity: 0%
    100 Experience Points 7 days registered 250 Experience Points 30 days registered 500 Experience Points
    PSN
    Stellakris
    Join Date
    Nov 2010
    Location
    Amsterdam, Holland
    Posts
    1,374

    Default

    Quote Originally Posted by fumetsusozo View Post
    I noticed on flat ground they work fine. i put a mover speed of 50 before on my sonic bot and his feet still worked. have you tried mixing your loop logic with a Attract-o-tweaker? i don't have a loop logic right now so i can't say or not that may fix it. *mew
    Actually, I started out with attract-o-tweakers but removed them when (I thought) they didn't make a difference. I'll give them a try and see if that helps.

  7. #6
    Sackperson Sergeant fumetsusozo's Avatar
    Points: 29,778, Level: 53
    Level completed: 3%, Points required for next Level: 1,072
    Overall activity: 30.0%
    7 days registered Created Album pictures 100 Experience Points 250 Experience Points 30 days registered
    PSN
    fumetsusozo
    Join Date
    Jul 2010
    Location
    ~Across Nowhere~
    Posts
    3,913
    Blog Entries
    15

    Default

    ^ oh i forgot something since it has been awhile last i messed with my bot. when using movers their feet only keep working when at fast speeds if you also input a signal in to the left stick on the DCS inside their head that makes them try to run. so you need both movers and try to make the bot run to make it's feet keep working at high speeds~ *mew
    Lets go on a fantastic Adventure!

    Spoiler Spoiler - <-My LBP2 Levels->

  8. #7
    Your Partner in Crime SnipySev's Avatar
    Points: 18,539, Level: 41
    Level completed: 55%, Points required for next Level: 411
    Overall activity: 5.0%
    7 days registered 30 days registered 100 Experience Points 250 Experience Points 3 months registered
    PSN
    SnipySev
    Join Date
    Feb 2011
    Location
    Portugal-Belgium
    Posts
    2,138
    Blog Entries
    2

    Default

    That looks amazing. The layer shift is barely noticeable

    And I never imagined the logic for a loop would get this complex.

  9. #8

    Default

    Or you could just use the Attract-O-Gel tweaker, and just make it make certain loop parts attractable when moving at a certain speed...

  10. #9
    Sackperson Private Antikris's Avatar
    Points: 19,466, Level: 42
    Level completed: 58%, Points required for next Level: 384
    Overall activity: 0%
    100 Experience Points 7 days registered 250 Experience Points 30 days registered 500 Experience Points
    PSN
    Stellakris
    Join Date
    Nov 2010
    Location
    Amsterdam, Holland
    Posts
    1,374

    Default

    Quote Originally Posted by Nitranon77 View Post
    Or you could just use the Attract-O-Gel tweaker, and just make it make certain loop parts attractable when moving at a certain speed...
    I did that at first, but there are a few details that made it obsolete:

    1. The speed of the bot is limited to 150% walking speed. Any faster and one has to use movers, which lead to complications described above and suddenly no longer require the AoT.

    2. The controls of a bot are based on the global X/Y plain when in attract mode. What I want for Sonic, though, is to be able to sprint straight on without having to turn stick. Also, Sonic can only overcome these obstacles when in sprint mode.

    3. If only an AoT on a looping shape, that wouldn't be worth much of a tutorial. I am surprised the community hasn't been flooded yet by Sonic levels that use AoT's everywhere...

  11. Thanks!


  12. #10

    Default

    Quote Originally Posted by Antikris View Post
    I am surprised the community hasn't been flooded yet by Sonic levels that use AoT's everywhere...
    Don't worry, it won't be long now.

    Also, I imagine there is potential with the AoT. Like mentioned, speed sensor on the bot, certain speed requirement for the AoT. It might not be perfect, but it sure is easy to make (afaik, I don't even have the pack )

    EDIT: And wow, another tutorial so soon?! Must say my favourite is still Rambo though.
    Last edited by SSTAGG1; 01-30-2012 at 05:58 AM.

  13. #11
    Sackperson Private Antikris's Avatar
    Points: 19,466, Level: 42
    Level completed: 58%, Points required for next Level: 384
    Overall activity: 0%
    100 Experience Points 7 days registered 250 Experience Points 30 days registered 500 Experience Points
    PSN
    Stellakris
    Join Date
    Nov 2010
    Location
    Amsterdam, Holland
    Posts
    1,374

    Default

    Quote Originally Posted by SSTAGG1 View Post
    Like mentioned, speed sensor on the bot, certain speed requirement for the AoT.
    It was exactly that what I did and it made no impact whatsoever due to the lateral movers for the sprinting. The AoT also didn't fix the smashing into floor trouble, so right before writing up this tutorial I removed the AoT's and sighed that it had just become a 'normal' tutorial.


  14. #12

    Default

    Quote Originally Posted by Antikris View Post
    It was exactly that what I did and it made no impact whatsoever due to the lateral movers for the sprinting. The AoT also didn't fix the smashing into floor trouble, so right before writing up this tutorial I removed the AoT's and sighed that it had just become a 'normal' tutorial.

    Perhaps there's some workaround that will allow a sackbot to stick to surfaces while moving using a mover. Or perhaps there's more to the AoT.

    I was thinking of make a little local gravity system that would get the bot to just follow a hologram around the map. Orient the bot by spinning the system. Potentially any speed and any direction. I wonder how that would react when it collides with a material. Would the bot appear to walk while on to the material in the gravity field or just continue floating? Or would it work at all....?

    I really should get that pack...

  15. #13
    Sackperson Sergeant fumetsusozo's Avatar
    Points: 29,778, Level: 53
    Level completed: 3%, Points required for next Level: 1,072
    Overall activity: 30.0%
    7 days registered Created Album pictures 100 Experience Points 250 Experience Points 30 days registered
    PSN
    fumetsusozo
    Join Date
    Jul 2010
    Location
    ~Across Nowhere~
    Posts
    3,913
    Blog Entries
    15

    Default

    ^hm... interesting. i'll go try to make that.
    Lets go on a fantastic Adventure!

    Spoiler Spoiler - <-My LBP2 Levels->

  16. #14

    Default

    Quote Originally Posted by Antikris View Post
    I did that at first, but there are a few details that made it obsolete:

    1. The speed of the bot is limited to 150% walking speed. Any faster and one has to use movers, which lead to complications described above and suddenly no longer require the AoT.

    2. The controls of a bot are based on the global X/Y plain when in attract mode. What I want for Sonic, though, is to be able to sprint straight on without having to turn stick. Also, Sonic can only overcome these obstacles when in sprint mode.

    3. If only an AoT on a looping shape, that wouldn't be worth much of a tutorial. I am surprised the community hasn't been flooded yet by Sonic levels that use AoT's everywhere...
    Well, I don't have the material yet, but the turning the stick with the movement problem is only minor- not serious. Now, I know how to make Sonic and the loop know when to activate when Sonics going horizontal and vertical, and i'm pretty sure that it will work. But, as i said before, I don't have it- YET, but once I do, i'll show it in a level.

  17. #15

    Default

    I played this and left a comment. I love the design immensely, but it would be lovely if you could include a prize bubble. Of course my intention would be the reverse engineer your device so I can create one for myself. Sometimes I happen to learn better by playing around the the object itself. Again, I would really appreciate a prize bubble.

    Thanks.
    (As of 08/26/2010) NEW LEVEL RELEASED: The Palace of Trials Act 1 ( search for @synchronizerman )

    An aura of darkness is descending on the land; You can FEEL it. The source? The Palace of Trials, the most powerful stronghold in the world. It is up to you to make it to the top and vanquish the impending doom.


    Level Showcase thread: http://www.lbpcentral.com/forums/sho...672#post592672

  18. #16

    Default

    Quote Originally Posted by Nitranon77 View Post
    Or you could just use the Attract-O-Gel tweaker, and just make it make certain loop parts attractable when moving at a certain speed...
    I tried this, but it doesn't really work. As kris mentioned, sonic smashes onto the loop. He just flings back with attract-o

  19. Thanks!


  20. #17

    Default

    Quote Originally Posted by megaextremist View Post
    I tried this, but it doesn't really work. As kris mentioned, sonic smashes onto the loop. He just flings back with attract-o
    Look at my recent post. I see what you mean, but when I get the pack and the gel, we'll see...

  21. #18

    Default

    Finally bought the pack, made it the way I thought of it to be, and its working juuuust fine.

  22. #19
    Sackperson Private Antikris's Avatar
    Points: 19,466, Level: 42
    Level completed: 58%, Points required for next Level: 384
    Overall activity: 0%
    100 Experience Points 7 days registered 250 Experience Points 30 days registered 500 Experience Points
    PSN
    Stellakris
    Join Date
    Nov 2010
    Location
    Amsterdam, Holland
    Posts
    1,374

    Default

    Quote Originally Posted by Nitranon77 View Post
    Finally bought the pack, made it the way I thought of it to be, and its working juuuust fine.
    Yeah, at 150% walking speed.

  23. #20

    Default

    Quote Originally Posted by Antikris View Post
    Yeah, at 150% walking speed.
    Tested it all speeds, I've made a chip on my bot that senses what speed the bots going, and if its at the assigned speed the atrracters will go. If you go slower, simply change the needed speed to activate the sensors to tell the loop to start attracting. I'll make the level so you can understand. Btw, I've made a way to auto-mate it.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •