Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

Need help with Magnetic Key Swiches.

Archive: 18 posts


OK, I have an Idea for my upcoming level, BUT....
It involves objects being Emitted with magnetic Keys on them.
I need the Magnetic Swich(Set to Directional) To Raise/Lower a pair of pistons when the Object is nearby.
I don't Mind how much room It takes, Or if Its Inverted, so long as it only takes ONE key to activate.
All Help Appreciated.
2008-12-05 20:55:00

Author:
DRT99
Posts: 431


Are you trying to say you are gonna have different colours of keys emitted but you only want one of the colours to be able to open the door

I don't really understand what your asking to tell you the truth
2008-12-05 21:10:00

Author:
dorien
Posts: 2767


That's fine.. That would work fine I think :/ As long as the keys are the same colour.. Yeah2008-12-05 21:14:00

Author:
DrunkMiffy
Posts: 2758


That's fine.. That would work fine I think :/ As long as the keys are the same colour.. Yeah

OH, if he was just looking for confirmation then.......
Yeah that will work fine what you described
2008-12-05 21:31:00

Author:
dorien
Posts: 2767


I've built several devices which involve the emitting of magnetic keys which activate switches. It does not seem very taxing on the thermometer, but I give the object a fairly short lifespan so I don't get a big pile of them. I also leathalise the emitted object the key is on so players are not tempted to much around with them too much.

Just one thing to be aware of is checking the key combination. You don't want emittable keys mucking up some other key pairing that you did not intend. This is especially important if the object that has the emitter on them is movable.
2008-12-05 23:59:00

Author:
Elbee23
Posts: 1280


Well....
Im not going to spoil the surprise or give away my secret, but.....
Enemies are spawned, when they are, they have a magnetic key on them (all of them have the same colour) And it needs to activate a "door".
BUT...
I NEED it to be able to be activated by only one enemy.
I need to test if it will work, thanks for help.
2008-12-06 00:02:00

Author:
DRT99
Posts: 431


Well....
Im not going to spoil the surprise or give away my secret, but.....
Enemies are spawned, when they are, they have a magnetic key on them (all of them have the same colour) And it needs to activate a "door".
BUT...
I NEED it to be able to be activated by only one enemy.
I need to test if it will work, thanks for help.

Hmmm... if you are thinking of what I have just built into my level, then you can put a unique key/switch system for each monster, and have the switch inverted.

An easy way to test the system without going into play mode is to pick up the monster using popit. The game engine treats the monster as vanished, and will activate the key. Then just unwind the monster picking up part when you are happy with the results.

I might be guessing wrong, but if I am on the right track, I hope it helps.
2008-12-06 00:06:00

Author:
Elbee23
Posts: 1280


Ill try to use an Example.
I'm making a boss, and he spawns Baddies every now and them, at Even Intervals.
I Need a set of doors that open when the baddy is nearby. That could mean there are more than one baddy at any one time. So more than one key at any time.
Any better?
2008-12-07 17:11:00

Author:
DRT99
Posts: 431


It sounds like it should work as you have described it. The emitted monsters have the mag key which opens the door when they get close to it... sounds fine. Have you tried to get this to work and are having problems or are you just asking if it will work?2008-12-07 23:29:00

Author:
chillum007
Posts: 228


Just asking because I read Somewhere that if you Have more than one Key, you need to have them all inside the radius2008-12-08 01:28:00

Author:
DRT99
Posts: 431


No, that's not true. You only need to have one key matching the colour of the switch inside the radius to activate it. Even if there are other keys with the same colour elsewhere in your level, the switch will still activate.2008-12-08 01:30:00

Author:
chillum007
Posts: 228


Awesome! That answers my question! (I can sleep at night again!)
Thanks Chillum!
BTW... Is there a way to make a swich that activates when all maching colours are in/out of the vicinity? Or should someone seriously suggest that for future DLC?
2008-12-08 01:42:00

Author:
DRT99
Posts: 431


Awesome! That answers my question! (I can sleep at night again!)
Thanks Chillum!
BTW... Is there a way to make a swich that activates when all maching colours are in/out of the vicinity? Or should someone seriously suggest that for future DLC?There are ways to do practically anything. All you have to do is to create an AND gate. Here's how you make it:

|||--|::::::|--|::::::K| |S|||
||||||||||||||||||||||||||||

The "|||" stuff is just material (I like wood for the job). The "--" are pistons. The "|::::::|" are blocks of material. The "K" is a key. The "S" is a switch.

So you connect one color switch to the piston and set it to directional. The set the other color switch to the other piston and set it to directional. Tweak the pistons so that it takes BOTH pistons to push the key into the switch's range. Then make that switch do whatever you want.

If you want more colors, add more blocks and pistons.
2008-12-08 02:18:00

Author:
Voltiare
Posts: 646


There are ways to do practically anything. All you have to do is to create an AND gate. Here's how you make it:

|||--|::::::|--|::::::K| |S|||
||||||||||||||||||||||||||||

The "|||" stuff is just material (I like wood for the job). The "--" are pistons. The "|::::::|" are blocks of material. The "K" is a key. The "S" is a switch.

So you connect one color switch to the piston and set it to directional. The set the other color switch to the other piston and set it to directional. Tweak the pistons so that it takes BOTH pistons to push the key into the switch's range. Then make that switch do whatever you want.

If you want more colors, add more blocks and pistons.

I think this only works with different coloured switches though.... if the keys and switches were all the same colour...um... I dont think it would be possible... as soon as one key enters the switch area, the switch activates, if there are multiple switches of the same colour they would all activate with just one key. As long as the key is within the activation areas of all the switches.
2008-12-08 04:39:00

Author:
chillum007
Posts: 228


I know that if there is one key and numerous swiches of the same colour, the key will activate the ones that it is in the vicinity of, but if there is one swich and numerous keys...?2008-12-08 23:19:00

Author:
DRT99
Posts: 431


I know that if there is one key and numerous swiches of the same colour, the key will activate the ones that it is in the vicinity of, but if there is one swich and numerous keys...?If the keys are the same color, any one of them will turn on the switch.

If the keys are different colors, then only the correct color will turn on the switch.
2008-12-08 23:40:00

Author:
Voltiare
Posts: 646


Try having all 8 colors keys set to and sitch, then have themob alternate between emitting different colors.

Thus once theres a mob of each color it will work.
2008-12-09 04:09:00

Author:
lionhart180
Posts: 200


Try having all 8 colors keys set to and sitch, then have themob alternate between emitting different colors.

Thus once theres a mob of each color it will work.

You don't actually have to use all 8 keys at once. If the idea works with just one or two, then there is no need to add further complexity. Besides making the set up for emitters more complex it also drains the thermometer.
2008-12-09 12:23:00

Author:
Elbee23
Posts: 1280


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.