Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Resource icon

Stamina / Dash [Beta] 0.1

No permission to download

Xyphien

Owner
Staff member
Administrator
Resource Team
Xy$
9.57
I changed the settings to "Reduced rate: 0.010 and Recover Rate: 0.0001" However, when you run, it goes down really fast (Which I want) but then it recovers the stamina the exact speed it goes down. So it recovers at 0.010 and it is really fast, but I want it really slow. Thought I'd inform you on this.
 

eivl

Local Hero
Xy$
0.00
I did this on purpose actually while testing.
You need the recover rate to be different when you are forced to walk and when you can run.

Reason for this is if not you can just spam click shift and you will more or less be able to run all the time.
in stead of making a new variable called recover when exhausted, i just made it the same as the recover (or reduce, don't remember)

I think that you would need 3 parameters to fully be happy, reduce rate, recover rate and recover when exhausted,

There is also another bug, reduce and recover can be set so that in my calculation you would not get a perfect 0, stuff will break. but i know how to fix this, will be after the next update.

also i do not like using 0.01 and 0.0001, i will change it to be 100 and 10 instead, and just divide by 10000 in the code instead.
and there is a limit to how far down you can take the variables, 0.0001 is the lowest i think, any lower and the number will be reduced to 0 in stead and the bar will not move.

not sure how to fix this, i think i will just override it if anyone writes inn a wrong value and fall back to default.

I have not tested with changing the bar values, not sure it is needed, might fall back to only control the width and height.
I can't work on this until tomorrow, so any other issues or features for the next update need to be written before tomorrow evening.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
I've actually ran into a few issues when testing it. The first one was rather strange, when my stamina finally recovered after running it gave me a quick boost of speed and I glitched and went right through a wall. The next glitch I was transferring maps while dashing and all of a sudden no more dashing and the dash bar was at full just not moving. I will see if I can recreate these issues it may have been pure luck, that kind of thing happens to me often lol.
 

Xyphien

Owner
Staff member
Administrator
Resource Team
Xy$
9.57
upload_2015-11-12_21-5-20.png Here is a picture of the settings. I've also tried changing the variables, etc. and nothing seems to work still.
[doublepost=1447351656,1447351550][/doublepost]Edit: I've changed it to 0.01 and 0.002 and it works fine now. Though it still regenerates way to fast, and there is no way to change it to regenerate slower.
 

eivl

Local Hero
Xy$
0.00
I regeneration is not controled in that version, it is as intended but will be changed :)
[doublepost=1448533858,1447357988][/doublepost]Rewriting the entire plugin with the help of someone from rpgmakerweb
Code is so heavily influenced by him so i am not sure it will be free for commercial use, trying to sort it out.
Copyright would be his and i am modifying it, hopefully it is something like Apache license so it can be free for everyone!
 
Top