![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | bilkar |
i tried scaling through resize but i doesnt seem to do the trick
extends RigidBody2D
export var min_speed = 150
export var max_speed = 250
func _ready():
var mob_types = $AnimatedSprite.frames.get_animation_names()
var rnsc = $AnimatedSprite.transform.scaled(Vector2(10,10))
print(rnsc.get_scale())
`$AnimatedSprite.animation = mob_types[randi() % mob_types.size()]`