#making pong ran into an issue

1 messages · Page 1 of 1 (latest)

brittle sand
#

@export is now

#

and you can use := instead of =

#

colon before equal symbol

#

so you have that variable with integer type

#

no

#

@export var move_speed := 250

#

if you want float type, type 250.0

#

you can do it

#

but not always

#

when editor says you xd

#

just practice

#

np

summer marlin
#

It takes what is on the right side of the = operator, and infers the Type of the value.

Basically it figures out the type for you based on what value you use on the right side of the = sign.