10-07-2016, 12:50 PM
I've tried your edited version but I keep getting lags.
Its a bit better now but only a little - it also has very slow performance. Like up 10 FPS while I normally have 40 FPS constantly.
It only happens if AURA_MODE is true
if AURA_MODE is false, everything seems like normal.
The reason why I used aura_cancel is because of a bug.
When I hold the aura button and the aura_switch is set on at the same time, the aura is still seen until the switch is switched again which I didint want.
That bug happens with the code above.
EDIT:
I've tested your original aura script:
The lag issue only happens when AURA_MODE is set to = true
When AURA_MODE = false everythign runs normal.
Is there anyway to fix it? I dont thing players want to play with solid 5 FPS.
BTW: what do you say about changing the aura_cancel method into the same method used in mode one.
I mean changing aura_cancel to aura_delay_update.
Would it cause troubles?
EXAMPLE:
Its a bit better now but only a little - it also has very slow performance. Like up 10 FPS while I normally have 40 FPS constantly.
It only happens if AURA_MODE is true
if AURA_MODE is false, everything seems like normal.
The reason why I used aura_cancel is because of a bug.
When I hold the aura button and the aura_switch is set on at the same time, the aura is still seen until the switch is switched again which I didint want.
That bug happens with the code above.
EDIT:
I've tested your original aura script:
The lag issue only happens when AURA_MODE is set to = true
When AURA_MODE = false everythign runs normal.
Is there anyway to fix it? I dont thing players want to play with solid 5 FPS.
BTW: what do you say about changing the aura_cancel method into the same method used in mode one.
I mean changing aura_cancel to aura_delay_update.
Would it cause troubles?
EXAMPLE:
Quote:#--------------------------------------------------------------------------
# * Aura System Mode Two : Constatn keypress the shows aura until released
#--------------------------------------------------------------------------
def aura_mode_two
if $game_switches[Aura::AURA_SWITCH] == true then
# Player cannot be moving
return aura_delay_update if $game_player.moving?
# Obtain keypress as local variable (works better as set variable)
test = aura_toggle_key
# If the current aura_key state doesn't match the keypress, we toggled
if @current != test
# Turn on or off the effect based on the new toggle state
(test == true) ? aura_test : aura_delay_update
# And reset the toggle aura key toggle state
@current = test
end
end
end