#as i already proposed use a floattimer
1 messages · Page 1 of 1 (latest)
oohh a float...i was using int.
that might be why i wasnt getting anywhere cause i did try what u suggested
huh, i dont see you using an int timer anywhere
if you mean the counter, thats a separate thing and should be int
well i tried.....i wasnt successful
so i need a timer
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
ok i was going about this all wrong
ill try that
https://gdl.space/exoqeqoray.cs am i on the right track. it didnt work, i just wanted to see if i was going in the right direction
ok so now you did this
(you declared it as 3 though... why. just make it 0)
or -1000
how about this?
idk it was the first thing that worked tbh
youre on the right track on lines 45-48
maybe start putting some thought into this, not just guessing
do this
sorry. im trying to understand it. thanks for ur patience
oh ur refering the number for last attack time...yeah i was guessing
its supposed to store the "last time you attacked"
and you should do lastAttackTime = Time.time when you attack
good luck bye
oh ok thanks for all ur help then