Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # answer to a question - https://vk.com/godot_engine?w=wall-70467171_18244%2Fall
- # Lang: GDScript
- func add_sprite_with_rnd_frame():
- var obj = Sprite.new()
- obj.frame = randi() % (obj.vframes * obj.hframes)
- add_child(obj)
- func _ready():
- randomize()
- add_sprite_with_rnd_frame()
Add Comment
Please, Sign In to add comment