system
1
|
|
|
 |
Attention |
Topic was automatically imported from the old Question2Answer platform. |
 |
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
system
2
|
|
|
 |
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