Added a threshold so that it doesn't instantly detect the next button press. Timing could be tweaked.

This commit is contained in:
fatratknight 2009-09-17 03:17:16 +00:00
parent f4b7f1d71a
commit f7bce819be
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
local EHP= 0x0398 -- Enemy HP address
local TMR= 23 -- Frames in advance for your punches.
local BND= -8 -- KEEP NEGATIVE!! Frames after the golden zone.
local threshold= 15-- How many frames before the target timing does it allow?
local DISPx= 180
local DISPy= 180
@ -52,7 +53,7 @@ while true do
EnemyHP= memory.readbyte(EHP)
gui.text(144,22,EnemyHP)
if IsPress() then
if IsPress() and LastHit <= threshold then
HitTiming= LastHit
LastHit= BND-1
timer= -18