#as i already proposed use a floattimer

1 messages · Page 1 of 1 (latest)

civic dagger
#

oohh a float...i was using int.

#

that might be why i wasnt getting anywhere cause i did try what u suggested

median junco
#

if you mean the counter, thats a separate thing and should be int

civic dagger
#

so i need a timer

median junco
#

just a float called lastAttackTime

#

set that to current time when you attack

#

and after a certain time is passed from lastattacktime, reset your combo

civic dagger
#

ok i was going about this all wrong

#

ill try that

median junco
#

(you declared it as 3 though... why. just make it 0)

#

or -1000

median junco
civic dagger
median junco
#

youre on the right track on lines 45-48

median junco
median junco
civic dagger
#

sorry. im trying to understand it. thanks for ur patience

#

oh ur refering the number for last attack time...yeah i was guessing

median junco
#

its supposed to store the "last time you attacked"

#

and you should do lastAttackTime = Time.time when you attack

#

good luck bye

civic dagger
#

oh ok thanks for all ur help then