character scripts
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
class DanceEvent extends CancellableEvent {
|
||||
public var danced:Bool;
|
||||
public function new(danced:Bool = false) {
|
||||
super();
|
||||
this.danced = danced;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
class DirectionAnimEvent extends CancellableEvent {
|
||||
/**
|
||||
Default animation that will be played
|
||||
**/
|
||||
public var animName:String;
|
||||
/**
|
||||
In which direction the animation will be played
|
||||
**/
|
||||
public var direction:Int;
|
||||
/**
|
||||
The suffix of the animation (ex: "-alt") - Defaults to ""
|
||||
**/
|
||||
public var suffix:String;
|
||||
/**
|
||||
Whenever the animation will play reversed or not.
|
||||
**/
|
||||
public var reversed:Bool;
|
||||
/**
|
||||
Whenever the animation will play reversed or not.
|
||||
**/
|
||||
public var force:Bool;
|
||||
/**
|
||||
At what frame the animation will start playing
|
||||
**/
|
||||
public var frame:Int;
|
||||
|
||||
public function new(animName:String, direction:Int, suffix:String = "", reversed:Bool = false, frame:Int = 0) {
|
||||
super();
|
||||
this.animName = animName;
|
||||
this.direction = direction;
|
||||
this.suffix = suffix;
|
||||
this.reversed = reversed;
|
||||
this.force = true;
|
||||
this.frame = frame;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package funkin.scripting.events;
|
||||
|
||||
class PointEvent extends CancellableEvent {
|
||||
/**
|
||||
X position
|
||||
**/
|
||||
public var x:Float;
|
||||
/**
|
||||
Y position
|
||||
**/
|
||||
public var y:Float;
|
||||
public function new(x:Float, y:Float) {
|
||||
super();
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user