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

asked Sep 30, 2019 in Projects by 0sait05 (41 points)

1 Answer

0 votes

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)
answered Sep 30, 2019 by Zylann (26,149 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.