Allows offsets to be loaded outside "shared" library
Since we can load in characters other than the shared libary, why not the offsets too?
This commit is contained in:
parent
7bbca03c69
commit
f7d8acc12f
@ -408,9 +408,9 @@ class Character extends FlxSprite
|
||||
}
|
||||
}
|
||||
|
||||
public function loadOffsetFile(character:String)
|
||||
public function loadOffsetFile(character:String, library:String = 'shared')
|
||||
{
|
||||
var offset:Array<String> = CoolUtil.coolTextFile(Paths.txt('images/characters/' + character + "Offsets", 'shared'));
|
||||
var offset:Array<String> = CoolUtil.coolTextFile(Paths.txt('images/characters/' + character + "Offsets", library));
|
||||
|
||||
for (i in 0...offset.length)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user