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

Compare values

Archive: 3 posts


Does anyone know how I could make the game compare 2 values and see which one is higher? I have 2 objects moving at different speeds and when they collide I want the slower object to explode. A timer determines the speed of each object. The problem is I don't know how to get the game to compare the timers and see which one has more seconds. Anyone know how I could pull that off?2011-01-28 19:46:00

Author:
Numberslayer
Posts: 4


Subtract one from the other with a Direction Combiner, then split it to see if the result is positive or negative. Check out Rtm's blogs on analog LBP2 logic, he explains this sort of thing much better, with pretty pictures and all.2011-01-28 19:51:00

Author:
Rogar
Posts: 2284


WOW O_o. This is really helpful... and complex. Thanks for the help. I'm gonna start reading these right now.2011-01-28 20:40:00

Author:
Numberslayer
Posts: 4


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.