I want to make a store that permanently upgrades buffs for example, Increase Fire rate, Projectile damage, etc, I tried… But for weeks I cannot figure out, Heres the code I was using,
This is to refresh the saved game and set the fire rate
And this is to purchase the upgrade so that it can be refreshed and used, Now I tried it and now I shoot like a minigun /: When I clearly set the delay to 1.0 So can anyone help?
So that It will constantly be updated
Wait a sec was I supposed to use Event Begin Play
Everynone
(Everynone)
April 23, 2021, 3:01pm
5
Why are you saving & loading game on Tick? Top screenshot.
Everynone
(Everynone)
April 23, 2021, 3:16pm
6
You’re loading and saving game 60 times per second…
Everynone
(Everynone)
April 23, 2021, 3:16pm
7
It’s this generally speaking:
Everynone
(Everynone)
April 23, 2021, 3:17pm
8
Pressing 1 buys firerate updgrade. Next time the game starts, we load this value from the save data.
Playing for the first time, the firerate is 1, firing 1 per second:
Buying 4 upgrades brings it to 5, we now shoot 5 times per second:
Restarting the game yields the same results as above. We fire more quickly.
Hope this helps.
Wow great job!!! but is there a way to limit the Firerate from (0 - 5)? also can I pls see the code in the Collapsed Graph Thats it
Everynone
(Everynone)
April 24, 2021, 2:22pm
10
You can clamp values like so:
the Collapsed
That’s just the standard spawn projectile stuff from the template, I copied it and collapsed so it takes less space.