PDA

View Full Version : How to Make a Black Hole



Joey9898
02-15-2011, 02:47 AM
I have an upcoming level with 3 sackbots with powers over darkness, light, and nothingness (look for it soon and play it). The one with control of darkness has a special attack in which it charges up, then floats into the air and creates a huge black hole that sucks in all nearby objects and destroys them. Making the black hole itself is pretty simple, take some material, make it wafer thin, and draw a shape with it (preferably a circle) and make it any material you want to make it look like a black hole. I used starfield in a spiral pattern. Now you're going to need to put some stuff on it. First put on an anti-grav tweaker if your black hole isn't made from a floating material. Then put two tags of different colors at the center of the black hole. Then you can add sound effects of your choosing. That's it for making the black hole, now you need to set up objects to be sucked into the black hole. First take a microchip, on it put two tag sensors, one for each tag on your black hole. Give one of them a very small trigger range and hook it to a destroyer. Give the other one a large range and hook it to a follower. Set the follower to follow the corresponding tag on the black hole. Make it's minimum range 0 and its maximum the same as its tag sensor. Set it's speed to your liking, although a slow speed makes for a better effect. Now just pop the microchip onto any object (or sackbot) that you want to be sucked into the black hole. If done correctly, when the black hole is present, the follower on the microchip will activate and the object will move towards the black hole. Once it gets to the middle, the short range tag sensor will trigger, destroying the object. Yay, you're done. Black holes can be used for super powers, weapons, hazards, movies, and much more! Have fun!

Beedy10
02-15-2011, 11:52 AM
Nice trick! I can see it having quite the 'wow' effect if it comes to the boss (which I assume the Darkbot is).

red_pharoah
02-15-2011, 12:16 PM
I tried doing something similar, but instead of putting two tags on the black hole, I put a tag and a different coloured tag sensor, with a very low detection range. I then put the corresponding tag and tag sensor on the objects that a re being sucked in.

Bercilak
02-15-2011, 01:30 PM
Have you tried using a "Speed Scale" tweak, so that the objects start moving a little faster as they get sucked toward the black hole? That would be cool!

Powershifter
02-15-2011, 03:24 PM
Nice tutorial. I bet this is similar (if not the same) to how Mm produced the same effect in the story levels.

Holguin86
02-15-2011, 04:51 PM
You could use the same colour tag, instead of using two tags. You'd have one follower with a huge range following the tag, and a tag sensor with a tiny radius detecting the same colour tag, which only becomes active up close. Doing it this way saves you some thermo too, as you're only detecting one tag across your level instead of two.

Grim
02-15-2011, 10:20 PM
I tried something like this before and ended up with almost the exact same thing, but one important factor made me axe the idea completely: Other movers cancel out the black hole's effect entirely while active, so there's little chance of using this against a moving player object.

I wanted to implement some good ol' Gravitar action with the player being pulled toward a central point, but I guess that'll have to remain a distant dream. :(

Madafaku
02-16-2011, 06:23 AM
I tried something like this before and ended up with almost the exact same thing, but one important factor made me axe the idea completely: Other movers cancel out the black hole's effect entirely while active, so there's little chance of using this against a moving player object.

I wanted to implement some good ol' Gravitar action with the player being pulled toward a central point, but I guess that'll have to remain a distant dream. :(

have all the logic for the movers on your sackbots go through a Not gate. like have a Not gate hooked to an And gate, thats paired with whatever Input you used for the movers on the sackbots. that way it will behave however you had it programed to until the tag is present, and the blackhole mover is activated.

Grim
02-16-2011, 11:42 AM
have all the logic for the movers on your sackbots go through a Not gate. like have a Not gate hooked to an And gate, thats paired with whatever Input you used for the movers on the sackbots. that way it will behave however you had it programed to until the tag is present, and the blackhole mover is activated.

I'm not using sackbots, and the other movers need to be active at the same time as the follower.

Anyway, I can kind of mimic Gravitar if there's no deceleration on any of the movers, but the movement inside the gravity zone feels way more random than it should be. I think it's because of the way rotators create bursts in your momentum.

alexbull_uk
02-18-2011, 02:17 AM
Plus, if you use the "shrink" destruction effect, then when the item/s get into the center of the black hole, it looks like they're really being sucked into it :)

Joey9898
02-19-2011, 02:25 AM
Yeah, I have the objects with the shrink effect. I currently have the level on hold right now since I'm working on another level (that should also be awesome). Btw, @ Beedy10, the Dark sackbot is playable, not a boss. :) I'm also thinking of making the level with a karma system sorta like InFamous. If you do bad stuff, you will gain dark powers, if you do good stuff, you get light powers, and if you do neutral stuff, you get neutral powers. It should be awesome if I can pull it off. Try to find me on LBP2 if you have any suggestions.