hello,
is there any schedule with repeat option ??
thank you
A fast, easy to use, free, and community supported 2D game engine
hello,
is there any schedule with repeat option ??
thank you
I don't really understand your question. Are you asking about scheduling an interval? Or are you looking to repeating an action continuously?
indeed it is not clear, sorry
i know this one :
[MyLayer schedule: @selector(MyFunction:) interval:1];
but this one is repeating all the time
i just want it to work one time
What you can do is at the end of MyFunction write:
[self unschedule: @selector(MyFunction:)];
Or call this whenever you want the schedule to stop.
i thought unschedule would stop even the first run
well, thank you
:=)
You must log in to post.