1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-16 02:23:15 +00:00
Pixelorama/src/Classes/Frame.gd
Emmanouil Papadeas 14a13a2161 Add user data for cels, frames and tags
Projects and layers are next, once I add project and layer setting dialogs respectively.
2024-04-04 01:27:50 +03:00

13 lines
489 B
GDScript

class_name Frame
extends RefCounted
## A class for frame properties.
## A frame is a collection of cels, for each layer.
var cels: Array[BaseCel] ## The array containing all of the frame's [BaseCel]s. One for each layer.
var duration := 1.0 ## The duration multiplier. This allows for individual frame timing.
var user_data := "" ## User defined data, set in the frame properties.
func _init(_cels: Array[BaseCel] = [], _duration := 1.0) -> void:
cels = _cels
duration = _duration