Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
func _ready():
$Garagedooropen.play()
or leave it as
func _ready():
$AnimatedSprite.play()
and do I put this code in the script for the scene which the animated sprite is in or do I made a script on the animated sprite and put the code in there. I may have tried some of these earlier but I got an error message when I tried to run the game
Edit* I put in the script for the scene node:
func _ready():
$Garagedooropen.play()
and also tried:
func _ready():
$Garagedooropen.play("Opening")
but it still wouldnt play when I ran the game so instead I put in
func _ready():
$AnimatedSprite.play()
but it came up with error message so I tried:
func _ready():
$AnimatedSprite.play("Opening")
and it came up with the same error message which says:
"Attempt to call function 'play' in base 'null instance' on a null instance