:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ragacakaci

can somvone help me?

:bust_in_silhouette: Reply From: Wakatta


According to GDScript rules

  • The definition func and the function it identifies must be separated by a space
  • Must be alpha-numeric in that order so ABC123 and not 123ABC
  • Must contain parentheses followed by a colon
  • If the function returns a type then -> followed by the Variant must be placed between the parentheses and colon
  • Variables if any are placed within the parentheses

Example of the above related to you question

func _ready():

All the information you seek is well Documented here and before posting another question on this forum you’d do well to fully review it