Stamina Script working incorrectly

Robert-Character Creator

Waiting for Replies
Veteran
Joined
Feb 8, 2014
Messages
516
Reaction score
220
First Language
English
Primarily Uses
RMVXA
Hello. I'm using Yami's stamina script, where there is a stamina bar when dashing. However, the "auto-hide" function does not seem to work correctly. To start, it is meant to disappear the stamina bar when you aren't dashing, after x frames. However, this only works the first time per game; after that, it always takes around 200 frames to disappear, regardless of number input. This occurs regardless of the presence of other scripts, as I've tested it in a new project. (Also the bar always appears when the game first starts for no reason, which is annoying, but at least it makes it easy to test the auto-hide feature. Fixing this will get you brownie points. <3)

Is there a way to fix this? It's a minor bug for sure, but still an annoying one. Thanks in advance.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
On line 351 the @Time is set to 180 frames. This is the pause time before it will disappear.
You can change it to whatever you want or make a new constant if you like.
Code:
    @time = YES::DASH::PAUSE_AFTER_FRAMES
or the built in constant already is
Code:
    YES::DASH::HIDE_AFTER_FRAMES
 

Robert-Character Creator

Waiting for Replies
Veteran
Joined
Feb 8, 2014
Messages
516
Reaction score
220
First Language
English
Primarily Uses
RMVXA
Looks like that fixed the first issue, thanks! Any chance of stopping the bar from appearing on startup until the player actually runs?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Stopping it from showing up looks to be beyond my knowledge, but you can just set the starting position in the script
Line 276
Code:
    self.x = -200 # $game_player.stamina_backup[:x]
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top