Skip to content

Instantly share code, notes, and snippets.

@sheepandshepherd
sheepandshepherd / rangeIterator.gd
Created February 19, 2016 00:18
Example of a custom iterator in GDScript
class RangeIterator:
var current
var end
var change
func stop():
if change > 0:
return current >= end
else:
return current <= end