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

I need help with a part of my FPS?

Archive: 6 posts


I need help creating an ammo and reloading system in my FPS. I need to make a ammo count in the bottom right corner visible somewhere and make it so you have to reload when it runs out (and can't still shoot while reloading!) Can anyone help me please?2011-05-29 20:17:00

Author:
Unknown User


I'm not an FPS guy, but for an easy, not-so-pretty way to do it, set an inverted counter on your HUD, connect the counter's output to your reloading animation and to a timer set for the amount of time you want your reloading animation to be. Connect the timer to the reset input of the inverted counter and timer.

When the inverted counter drains, it will run the reloading animation. When the timer reaches the end, it will reset the inverted counter and timer, allowing you to continue shooting until the clip runs out again. To disable the shooting, connect whichever wires activates the shooting animation to an AND gate, and connect a NOT gate to the other input of the AND gate. Connect the inverted counter to the NOT gate. This way, whenever you run out of ammo, one input of the AND gate is turned off, therefore disabling the shoot ability.

Also, you can change the color of the counter to match your HUD or anything else.

Hope I helped.
2011-05-29 20:39:00

Author:
nunsmasher
Posts: 247


Thanks! How would I make crosshairs?!? You've been big help!

Edit, I tried what you said to stop the shooting when reloading but it doesn't work! Could you come to my level and help out? PSN: SoulWithin


I'm not an FPS guy, but for an easy, not-so-pretty way to do it, set an inverted counter on your HUD, connect the counter's output to your reloading animation and to a timer set for the amount of time you want your reloading animation to be. Connect the timer to the reset input of the inverted counter and timer.

When the inverted counter drains, it will run the reloading animation. When the timer reaches the end, it will reset the inverted counter and timer, allowing you to continue shooting until the clip runs out again. To disable the shooting, connect whichever wires activates the shooting animation to an AND gate, and connect a NOT gate to the other input of the AND gate. Connect the inverted counter to the NOT gate. This way, whenever you run out of ammo, one input of the AND gate is turned off, therefore disabling the shoot ability.

Also, you can change the color of the counter to match your HUD or anything else.

Hope I helped.

Please help!
2011-05-30 00:32:00

Author:
Unknown User


Look at comphermc's tutorial on health bars, the same system should work for reloading.2011-05-30 13:08:00

Author:
Jakeamorris25
Posts: 72


I have a system using counters, I could make it for you easily, I'll add you. When will you be on? In the next hour would be perfect, unless my mom has to go somewhere :/2011-05-30 13:41:00

Author:
Unknown User


I have a system using counters, I could make it for you easily, I'll add you. When will you be on? In the next hour would be perfect, unless my mom has to go somewhere :/

Sorry I was out of house today... whenever you can.
2011-05-30 21:35:00

Author:
Unknown User


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.