Commit d0288755 authored by Viktor Lidholt's avatar Viktor Lidholt

Adds a new ActionDelay class to sprites

parent d89e5e4d
......@@ -295,6 +295,13 @@ class ActionGroup extends ActionInterval {
}
}
/// An action that doesn't perform any other task than taking time. This action
/// is typically used in a sequence to space out other events.
class ActionDelay extends ActionInterval {
/// Creates a new action with the specified [delay]
ActionDelay(double delay) : super(delay);
}
/// An action that doesn't have a duration. If this class is overridden to
/// create custom instant actions, only the [fire] method should be overriden.
abstract class ActionInstant extends Action {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment