Created
November 10, 2015 14:01
-
-
Save zackp30/accc861ff1c7d34efd75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func _on_Timer_timeout(): | |
set_pos(Vector2(randf() * get_node("..").get_size().width - get_texture().get_width() * get_scale(), randf() * get_node("..").get("rect/size").height - get_texture().get_height() * get_scale())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment