![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | thedarksidecode |
Hello!
How using (or any other option)
$ Sprite.position = Vector2 (x, y)
change only x.
Thanks.
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | thedarksidecode |
Hello!
How using (or any other option)
$ Sprite.position = Vector2 (x, y)
change only x.
Thanks.
![]() |
Reply From: | Zylann |
You can try:
$Sprite.position.x = x
Or
var pos = $Sprite.position
pos.x = x
$Sprite.position = pos