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

Detecting Player Deaths

Archive: 5 posts


Does anybody know how you can detect when a player is dying? Essentially I want to lock all player controls while someone is being electrocuted/drowning/etc, but I have yet to find any way of figuring that out. My level is set up to where the object you are controlling is separate from the Sackbot (I can't change that, trust me) so whenever you die, you can move invisibly for a second or so, which moves the camera and lets you pick up items you shouldn't be able to reach. I'd greatly appreciate any help!2016-07-10 19:07:00

Author:
CMike9001
Posts: 29


I'm not sure how exactly how you level works but there is a way for you to fix this.

Have a inverted Tag sensor stay on when your character is on screen. If your character dies the tag is no longer on screen and it disables your controlnator. (Disabling all controls.) Have some outside logic respawn your character with the tag on it and you should be able to use your controls again once hes on screen.

Now if your not destroying your sackbot I would just turn the tag on the character off while its touching a object. That might be hard for swimming/breathing underwater to do. (Not sure if there is a water sensor in this game.)

You might also wanna disable your sackbots collusion & attach a follower on him to move to his spawn point when he dies. You can turn your screen to black during the respawning process to hide him moving to the spawn point or I think you can also put a transparent chip and turn it on while hes moving in air.

I would do that instead of destroying/reemiting the sackbot if it has alot of logic on it. Reemitting heavy logic objects is lagy/bad for online play.

I hope that answers it.
2016-07-11 04:58:00

Author:
venat
Posts: 715


I'm not sure how exactly how you level works but there is a way for you to fix this.

Have a inverted Tag sensor stay on when your character is on screen. If your character dies the tag is no longer on screen and it disables your controlnator. (Disabling all controls.) Have some outside logic respawn your character with the tag on it and you should be able to use your controls again once hes on screen.

Now if your not destroying your sackbot I would just turn the tag on the character off while its touching a object. That might be hard for swimming/breathing underwater to do. (Not sure if there is a water sensor in this game.)

You might also wanna disable your sackbots collusion & attach a follower on him to move to his spawn point when he dies. You can turn your screen to black during the respawning process to hide him moving to the spawn point or I think you can also put a transparent chip and turn it on while hes moving in air.

I would do that instead of destroying/reemiting the sackbot if it has alot of logic on it. Reemitting heavy logic objects is lagy/bad for online play.

I hope that answers it.

I am trying to disable it WHILE he is dying. When Sackboy hits an electric block, he does a short shock animation (where I don't want any player control), pops, and appears back at the checkpoint. I want something that could tell me exactly when he is dying, not when he pops and disappears.
2016-07-11 06:00:00

Author:
CMike9001
Posts: 29


I am trying to disable it WHILE he is dying. When Sackboy hits an electric block, he does a short shock animation (where I don't want any player control), pops, and appears back at the checkpoint. I want something that could tell me exactly when he is dying, not when he pops and disappears.

Is the sackbot remotely controlled off screen or does the player enter the sackbot?

Yeah just have the controls disable the sackbot & just have the sackbot do a shocking animation. Then just disappear him+turn off collusion+attaching a follower at max speed. Emite a tag at any spot you want him to return to. When sackbot is in range of the spawn tag just have the logic reset off (can use a counter 0/1) to turn on & reset it off for the death+spawning.

During the zone phase, can use a sequncer for most of this. Can streech the tag for the length of time you want the sackbot to say how long hes dead for/while zoning. Also if you wanted to attach the same tag for near the counter and stay on till he touches the spawn point.

You could just add a collusion sensor for tags when hes touching dangerous objects.
Collusion sensor+tag= 1 0/1 Counter= Trigger tag. Timer 0.1 reset Counter. Can use the last tag to tell you when hes touching it and taking damage.

There is a few ways to do it.

Add me FFxiYukey

I probably can do it np for ya.
2016-07-11 06:23:00

Author:
venat
Posts: 715


I'll try that out! Thanks!2016-07-13 04:04:00

Author:
CMike9001
Posts: 29


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.