#A bug with tower defense game

1 messages · Page 1 of 1 (latest)

unborn ferry
#

when you mean dead you mean like the enemy is destroyed like enemy:Destroy()?

tiny citrus
#

my studio crashed

#

let me reopen it and send the code for the errors

tiny citrus
#

yeah im pretty sure destroyed

#

i added in the else return earlier

unborn ferry
# tiny citrus

then add an if statement to check if damageDelt, config, and config.totaldamage exists

#

problemo fixo

#

if it dont exist then dont add the stuff gold, earned cash and total damage

tiny citrus
#

is the else return fine

unborn ferry
#

should be tho

unborn ferry
#

ima guess the problem is fixed

tiny citrus
#

gonna test again

unborn ferry
tiny citrus
#

thats this

#

the return just makes it fail infinitely i think

unborn ferry
# tiny citrus

unless theres the use of math.floor in tower.Attack then thats the wrong code

tiny citrus
#

is there something i can do to make it go back to normal

#

and make it stop attacking

#

like returning it to before attacking

unborn ferry
#

I dont know your code ||nor have the time to read it|| so the only thing I can say to you is that its most likely possible but theres prob not gonna be an easy solution (this is usually the case)

#

and hope you fix your problem (or someone else does)

tiny citrus
#

i think i fixxed it