RapidGameFramework
Reusable Godot managers for data-driven small games
Loading...
Searching...
No Matches
sprite_animation_rect Namespace Reference

Variables

 Dictionary
 Configure this node with pre-resolved Texture2D frames.
 
 frames = next_frames.duplicate()
 
 fps = max(0.1, float(options.get("fps", 8.0)))
 
 loop = bool(options.get("loop", true))
 
 playing = bool(options.get("autoplay", true))
 
 elapsed = float(options.get("offset_seconds", 0.0))
 
 stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
 
 expand_mode = TextureRect.EXPAND_IGNORE_SIZE
 
 mouse_filter = Control.MOUSE_FILTER_IGNORE
 
 texture = null
 
int current_frame = -1
 
 frame = frame % frames.size()
 

Variable Documentation

◆ current_frame

sprite_animation_rect.current_frame = -1

Definition at line 46 of file sprite_animation_rect.gd.

◆ Dictionary

sprite_animation_rect.Dictionary

Configure this node with pre-resolved Texture2D frames.

Definition at line 16 of file sprite_animation_rect.gd.

◆ elapsed

sprite_animation_rect.elapsed = float(options.get("offset_seconds", 0.0))

Definition at line 21 of file sprite_animation_rect.gd.

◆ expand_mode

sprite_animation_rect.expand_mode = TextureRect.EXPAND_IGNORE_SIZE

Definition at line 23 of file sprite_animation_rect.gd.

◆ fps

sprite_animation_rect.fps = max(0.1, float(options.get("fps", 8.0)))

Definition at line 18 of file sprite_animation_rect.gd.

◆ frame

sprite_animation_rect.frame = frame % frames.size()

Definition at line 48 of file sprite_animation_rect.gd.

◆ frames

sprite_animation_rect.frames = next_frames.duplicate()

Definition at line 17 of file sprite_animation_rect.gd.

◆ loop

sprite_animation_rect.loop = bool(options.get("loop", true))

Definition at line 19 of file sprite_animation_rect.gd.

◆ mouse_filter

sprite_animation_rect.mouse_filter = Control.MOUSE_FILTER_IGNORE

Definition at line 24 of file sprite_animation_rect.gd.

◆ playing

sprite_animation_rect.playing = bool(options.get("autoplay", true))

Definition at line 20 of file sprite_animation_rect.gd.

◆ stretch_mode

sprite_animation_rect.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED

Definition at line 22 of file sprite_animation_rect.gd.

◆ texture

sprite_animation_rect.texture = null

Definition at line 45 of file sprite_animation_rect.gd.