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

DCS Help

Archive: 6 posts


I need to make a machine that will jump with a single button.

With the system Im using right now, you can jump spam the jump button to float everywhere. Can someone help me make a jumping system that is balanced out?

:SH:
2010-12-13 02:19:00

Author:
ThePineapplizer
Posts: 769


Use impact sensor to detect if your vehicle is touching ground2010-12-13 02:27:00

Author:
Shadowriver
Posts: 3991


Use impact sensor to detect if your vehicle is touching ground

...

I am so stupid. Thank you, sir.

:SH:

(Quick note to myself)
IP->___Gate->Timer->Mover
2010-12-13 02:42:00

Author:
ThePineapplizer
Posts: 769


Sorry for asking again, WOULD I use a gate for this jumping-system?

:SH:
2010-12-13 12:41:00

Author:
ThePineapplizer
Posts: 769


Ofcorse AND Gate, since 2 conditions need to be meet in order to jump right?

*Vehicle need to touch ground
AND
*Player need to press jump button

You might have trouble with walls if you have any, since when your vechicule touch them it will able to jump too, to fix that tag your walls, make other impact sensor but INVERTED (this is most important thing) and set require tag tweak to tag that you use on wall, AND gate that impact sensor with the first impact sensor and now AND gate will output signal only if vechicule touching untaged things.
2010-12-13 14:38:00

Author:
Shadowriver
Posts: 3991


Depending on the vehicle, you might want to include a timer. When I built the jump function for my monocycle, I found that a lot of the time it would be just a bit off the ground when I'd try to jump (every bump would knock it into the air a bit) so my jump button wouldn't work. I fixed it by running the impact sensor through a .2s timer: now the vehicle has to be off the ground for .2 seconds before you lose the ability to jump, which nicely smooths over all the little bumps.2010-12-13 22:42:00

Author:
Sehven
Posts: 2188


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.