how do i scale global_scale(Vector3(2,2,2)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 0sait05
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

:bust_in_silhouette: Reply From: Zylann

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)
 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.

0sait05 | 2019-09-30 14:16