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

Blocking attacks

Archive: 2 posts


Im making a fighting game and all actions that do "damage" are done by tags and switches( a apecial effect from the fist emits with a tag and the enemy has the sensor ).
How would I go about making a Block, where no damage is taken( or make the sensor ignore the tag ), and the sackbot blocking is immobile and can't attack until they release the block button, and maybe even make it where after getting hit about 4-5 times the block is canceled?? You would hold "L1" to block in this case.
Thanks!
2011-03-12 08:02:00

Author:
Unknown User


Connect the L1 button (negative) together with the tag sensors to an AND gate and connect it to all buttons which are responsible for attacks. If it works, it should negate attacks and disable attacking.
To make it stop working after a while...
...connect it to a timer which counts attacks about 4-5 times with an AND gate and your attacks.
As soon as it's full, for example, the output of the counter (negative again?) turns off the L1 button.
You could make use of an timer which shows how long the player needs until the guard is restored or something like that by activating an timer with an positive input which resets the counter.

...hope you understand what I'm trying to say!
2011-03-12 08:26:00

Author:
iArekusu
Posts: 402


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.