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

Connecting a player sensor to a timer

Archive: 6 posts


Hi!
I'm trying to create a dissolving gate for a level I'm attempting to make. I've connected a player sensor to a timer which is connected to the dissolve material; however, the player sensor does not start the timer. I've tried all different input actions on the timer and nothing seems to do the trick. The timer and player sensor are both attached to the dissolve material. Help please?
Player sensor options

Minimum detection range: 14.0
Maximum detection range: 14.0
Trigger angle range: 360
Same layer: no
Number of players required: 1
Require all players: no
Invert output: no

Timer options

Target time: 5.0
Current time: 0.0
Input action: start/stop
Invert output: no
2011-02-22 17:15:00

Author:
Unknown User


A couple of things offhand.

First a min and max range equal "I think" would not really trigger on a player. Seems like it ends up a small line / circle around the sensor and would think it would have to be a min of 0+ to insure there was a nice area to see the player.

2nd.. I think you want to have the player sense set off a perm switch and THEN do your timer so if your player leaves the defined area, the timer will stop. ...unless that is what you want? Like if you want them to stand on the magic spot or something for a required amount of time. Otherwise to insure they trip it and in case they run around elsewhere, use a perm to keep the timer counting towards the dissolve event.

Good luck!
2011-02-22 17:26:00

Author:
jwwphotos
Posts: 11383


Thanks! Tweaking the min/max did the job. Yay! 2011-02-22 17:35:00

Author:
Unknown User


2nd.. I think you want to have the player sense set off a perm switch and THEN do your timer so if your player leaves the defined area, the timer will stop. ...unless that is what you want? Like if you want them to stand on the magic spot or something for a required amount of time. Otherwise to insure they trip it and in case they run around elsewhere, use a perm to keep the timer counting towards the dissolve event.

You can set the timer to "Start count up" and it will count up even if the player was to move away from the sensor.
2011-02-22 17:37:00

Author:
Shanghaidilly
Posts: 153


Most welcome!

I think of sensor area as "range of coverage" Moving the min up from zero basically creates a safe zone or in other words, "don't bother looking here", zone. Handy in some cases, but not for your purposes.
2011-02-22 17:38:00

Author:
jwwphotos
Posts: 11383


The player moving out of range isn't a problem; they will temporarily be stuck there?only until the gate dissolves! 2011-02-22 17:42:00

Author:
Unknown User


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.