Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Tutorials
#1
How To Make A Gun Reload And Have Sound Effect (Semi-Auto gun or Auto gun)
Archive: 1 post
1) Connect a "SHOOT" button (R1 or X or L1 or anything you use for shooting) to the AND gate and to the TIMER input increment (Use counter of the weapon if semi-auto(shoot single)). Set timer (Counter) - OUTPUT inverted YES, Time (Target count) = How long the gun will shoot (How many ammo) 2) Connect AND gate to the emitter (or anything that create bullets) 3) Connect a timer to the input reset (this is the reload time). Set time to the reload time you want (example Time: 2.0s means the gin will reload for 2 second). To reload connect a reload button (L1, L2 or anything else) to the input: increment 4)Connect the "SHOOT" button to the reload timer - reset. You will always have to hold the reload button to reload. 5)Make the first timer (The one that shows ammo): Switch visible - display the ammo count 6)Set the emitter time = rate of fire. For semi automatic gun set the time to 0.0s 7)Create another emitter and make the max count to 1, lifetime = 0.1s and destroy effect = explode. This will make the gun to have EXPLODE sound effect. Connect and gate to this emitter. Time should match the first emiiter | 2013-08-17 14:54:00 Author: dexterlab97 Posts: 9 |
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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.