0 votes

I have one texturerect as child of zombie I want to move it up
I wrote

zombiHealth.rect_position(something) 

when I run the game it's showing Invalid call. Nonexistent function 'rect_position' in base 'TextureRect'.

When I select control in node window of texturect it's saying all ui nodes inherit from control so it should be working

Godot version 3.4.2
in Engine by (24 points)

1 Answer

0 votes

Try

zombiHealth.rect_position = Vector2(100, 100)

Note = 100 just examples

by (755 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.