Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | NikoKutie |
var a: int = 1
how i turn this line into a safe line?
a = speed * delta
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | NikoKutie |
var a: int = 1
how i turn this line into a safe line?
a = speed * delta
Reply From: | siska |
You can use ‘casting’ :
var a:int =1
a = int(speed * delta)