Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Rayu |
I’m Stuck please help.
I need the main function of the Game and i don’t know how to do that.
I watched many tutorials tried many things, but i can’t do it.
I need a Touch function. with that function i want to controll the score,time and level up.
I can’t go forway on my Game without that function.
Please explain as simple as possible my English is not the best with script if possible
Have you looked at the official documentation? Try to find the documentation in a language you can fully understand. Look on the documentation page here. Scroll down to the “Translations” section on the right side of the page to find a suitable language. Then learn about how scenes are setup to function (the article “Scenes and nodes” describes this). After reading that article, read the articles on scripting (the English articles are here and here).
Ertain | 2020-11-11 16:53
Hello and sorry i’m really bad at telling my problems.
func _process(delta: float) → void:
if Input.is_action_just_pressed(“ui_touch”):
Score += 1
$ScoreCount.text = str(Score)
(this is the script from the Player Scene, The Player is loaded to the Main Scene) but i can’t connect this to the Main Scene where The ScoreCount is.
Is it not possible to connect a Signal or Input from 1 Scene to another?. I tried to connect a Texturebutton before but it wouldn’t let me connect either. So i thought i try it out with Touch input. i hope you can understand my problem.
Rayu | 2020-11-12 10:40