Enabled BallBurst common animations to be played during other battle animations

This commit is contained in:
Maruno17
2022-02-22 19:26:50 +00:00
parent 2057084f69
commit e5be233224
5 changed files with 73 additions and 12 deletions

View File

@@ -368,6 +368,11 @@ class PBAnimations < Array
@array[i] = value
end
def get_from_name(name)
@array.each { |i| return i if i&.name == name }
return nil
end
def compact
@array.compact!
end
@@ -751,6 +756,17 @@ class PBAnimationPlayerX
@foColor.dispose
end
# Makes the original user and target sprites be uninvolved with the animation.
# The animation shows just its particles.
def discard_user_and_target_sprites
@animsprites[0] = nil
@animsprites[1] = nil
end
def set_target_origin(x, y)
@targetOrig = [x, y]
end
def start
@frame = 0
end