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

trying to make a patroling police officer

Archive: 11 posts


im trying to make a little prison level. the sequel to my other one....and in it i want there to be places with police with torches patroling the corridors and such like

what i want is a cop to go left and right down a corridor, with a torch and i want it of course to shoot the player when it see them...thats easy to pull off. but what im having trouble with is the partolling bit

iv tried some things to make it so the torch switches to the front of the cop when he is moving forward....iv tried to make an illusion of it too. like an emitter with a key switch on it...when the cop gets near it he fades away and another facing the other way emits and so on...didnt work. iv tried having a cop with two torches on either side...it doesnt look right. i have one more idea...but while im working it out id like to know how other people here would do it

i want the player to be on the back layer...then they come to a wall. the cop is in the middle layer. and the front layer is hostile, i made an excuse for their being gas in areas because "someone" broke the piping. anyway of course i want you to hide in the gaps in the wall on the back layer until you get to the end where there is no gap in back layer....theres a safe bit in the front and you hide behind say a cleaners trolly....once the cop passes you hop out and in the middle layer, to the back and in the next corridor

im just having a bit of trouble making the cop work

if theres any help that anyone can give thatd be great

>_<
2010-01-19 15:11:00

Author:
Xegethra
Posts: 207


Interesting.

Well, I am in create mode now - my lazy version is to put the arm holding the flash light on a wheel attached to a wobble bolt, attached to a directional switch - 180 degrees rotation.

In the test I just did, that would make his arm go straight over the top of his head and point the other way.

EDIT - Scratch all of that, I just got carried away and made it. I have a working sponge guard if you would like to copy it.

EDIT - (Low Definition) Pics.

Guard going right.
http://www.lbpcentral.com/forums/attachment.php?attachmentid=11868

Guard going left.
http://www.lbpcentral.com/forums/attachment.php?attachmentid=11869

The arm carries a blue key - the blue key activates identical switches at either end.

The switch emits a green key. The green key-switch on the guard activates the wobble bolt.

The emitted keys appear for 0.1 seconds and disappear. This is the timing on the wobble bolt, set to 180 degrees as well. As an extra precaution, because the key is on the end of the arm, when it rotates around, it rotates out of range of the key-switch.

It would probably work if you removed the blue key, the blue key switch and the emitters and just put green keys there.

The green switch attached to the wobble bolt is set to directional. The rest are all on/off switches.

I hope that helps.

EDIT - it does work without the blue keys when the range is short enough.

The green key is now on/off as well. I added a 4 second pause. This is plenty for the arm to rotate out of range and stop dead while the guard turns around.

Fixed reliability with longer pause and longer key-switch range.
2010-01-19 15:41:00

Author:
ButterflySamurai
Posts: 98


Why dont you just use creature legs and brain with creature lights (cant remember what you call them, but they stop the brain moving past them) . Then just put two mag keys at the end of each patrol distance. Put the two keys through an or gate and use some notched wheel logic to change the direction of the hand.2010-01-19 18:38:00

Author:
theamilien
Posts: 485


Whoa is that a unicycle guard? Looks cool. Does it fall over or will it stay upright with only the one wheel. I've never tested this out...2010-01-19 18:40:00

Author:
Thegide
Posts: 1465


Strangely enough, it can balance and turn round fine - it was a proof of concept. =o)2010-01-19 18:49:00

Author:
ButterflySamurai
Posts: 98


wow thats one funky mechanism...doesnt look like a cop though...but, if it works it could be a uhh...a machine they use to patrol at night... >_>

but yeah it looks pretty cool, i had a similar idea which i didnt quite get to work right....hmm
2010-01-19 19:21:00

Author:
Xegethra
Posts: 207


wow thats one funky mechanism...doesnt look like a cop though...but, if it works it could be a uhh...a machine they use to patrol at night... >_>

but yeah it looks pretty cool, i had a similar idea which i didnt quite get to work right....hmm

I was not trying to get the look, I was finding a mechanism that worked so that you use it in your cop, that hopefully looks less like a horror movie clown, haha.
2010-01-19 19:29:00

Author:
ButterflySamurai
Posts: 98


well, i did come up with a similar idea. what i had was a cop that moves left to right on a piston. and behind his head he has a rotating circle with the light on it. and on his arms he is carrying two guns. it all works except that i couldnt get the circle to rotate at the two ends of the corridor....but using your suggestion i might be able to get it to2010-01-19 19:44:00

Author:
Xegethra
Posts: 207


What i would do is use some magnetic keys, put them on a wall somewhere and on the cop. Make 2 pairs (different colors) to switch back and forth of the direction.2010-01-22 16:32:00

Author:
Emogotsaone
Posts: 1030


I made a patrolling sentry that does this. I used the sackboy cutout shape and decorated it a bit. I cut out the eyes and put in small rotating circles with the cartoon eye deco on them and set them and his gun to wobble 180 degrees. I put the sensor switch that triggers the alert on one of the eyes. Once he goes into alert state, he will stand still and shoot at the player if he's still in sight. After 5 seconds or so, he goes back to patrolling. He's not too bright, you can jump over him while he's alerted and he'll just stand there, but I wasn't too worried about that.

A little off subject, the way of defeating the sentry is to repeatedly grab him from behind: choking him MGS style.

If you want to see it, there are two of them in my Dire Wolf level and it's given in a prize bubble. The logic is a bit complicated. I could probably simplify/optimize it with what I know now (made the sentry almost a year ago) and maybe even make it behave a bit more intelligently, but I'm not too worried about it.

psn: Sehven
level name: "Dire Wolf pt 1: Tameness of a Wolf"
2010-01-30 01:14:00

Author:
Sehven
Posts: 2188


If you notice in story mode, there are two white light that make all the bots 'Patrol'.2010-01-30 01:52:00

Author:
Emogotsaone
Posts: 1030


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.