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

Sackbot / Player - Fall damage

Archive: 5 posts


This little, simple bit of logic can be added to any sackbot and is easy to customize.
It limit the distance the player can fall without taking damage.

However, it is totaly up to the creator what they with the consiquences of a 'long fall' to be, maybe death or just a little blood animation.

Here is a video tutorial:


http://www.youtube.com/watch?v=F0LPXXrxfGg&feature=channel_video_title

I hope you like it, feedback is more than welcome!
2011-10-15 23:22:00

Author:
samalot
Posts: 591


you can do it with just the downward speed sensor wired into an AND gate with the impact sensor, no need for the timer and counter2011-10-16 08:25:00

Author:
evret
Posts: 612


Indeed, but with the counter, you would start to mess around with things like - 3 long falls kill you.

and the time was just my failsafe way to reset it
2011-10-16 08:44:00

Author:
samalot
Posts: 591


Why do you put a destroyed on the blood? Since it's emitted you can just change the lifetime on the emitter itself.

Anyway, more tutorials is always good so thanks.
2011-10-16 09:15:00

Author:
Syroc
Posts: 3193


Indeed, but with the counter, you would start to mess around with things like - 3 long falls kill you.

and the time was just my failsafe way to reset it
actually it seems my method doesnt always work, however you are better off using fall speed to determin how far a fall will kill you.
also you could focus on deceleration speed to determine death or damage coz not every impact would be hard, for example falling a long distance onto a springboard would kill/damage you with this system

edit: looking back on a bot i made when the speed sensor came out i used an "instant on, timed off" timer setup (it sends an on signal instantly, then it holds the on signal briefly after it loses the on input).
the timer is inverted and set to 0.1 and u just set the speed sensor to the speed you want to fall at b4 it kills/damages you
http://i7.lbp.me/img/ft/1474e0be5d6a3d0dda4bede8729146b915ed6d65.jpg
2011-10-16 09:56:00

Author:
evret
Posts: 612


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.