Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- var is_counting = true
- var countup = 0
- func _ready():
- pass
- func _on_Timer_timeout():
- print(countup)
- if countup == 10:
- is_counting = false
- elif countup == 0:
- is_counting = true
- if is_counting == true:
- countup += 1
- else:
- countup -=1
- pass
- #otorp2, just add a boolean variable that switches at 10 and 0
- #if countup == 10: bool-var-name = false
- #else if countup = 0: bool_var-name = true ||||
- # and in your incrementor if bool_var_name == true: incrementor +1 else incrementor -1
- #[17:02] <scionicspectre> Oh, good to know it's actually feasible with Veraball.
- #[17:03] <dc1a0> oops forgot the 2nd = in the countup == 0...lol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement