0 votes
func _ready():  
    if Input.is_action_pressed("scale_up"):
    #   NEED THIS if is_inside_tree():
     global_scale(Vector3(90,90,90))

how do i make everything bigger by scaling??
I'm using Godot 3.1.1 stable windows 8.1 64bit

in Engine by (40 points)

1 Answer

–1 vote

global_scale is a property, not a function, that's why you cannot use the "call" syntax this way.

Treat it as a variable, like so:

global_scale = Vector3(90, 90, 90)
by (27,831 points)
 mx+=0.005
 mz+=0.005
 my+=0.005
 Snode.scale_object_local(Vector3(mx,mz,my))

This is what I needed and it works.
Don't think this is a property. it's still a function but I'm new to coding.

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 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 webmaster@godotengine.org with your username.