Added missing functions to Projector Actors

This commit is contained in:
n00b87
2026-02-22 03:04:03 -06:00
parent 21e06b0848
commit c4d559f0d4
25 changed files with 2523 additions and 1926 deletions

View File

@@ -178,6 +178,20 @@ int rc_getSpriteAnimationLength(int spr_id, int animation)
return rc_sprite[spr_id].animation[animation].num_frames;
}
int rc_getSpriteAnimationSource(int spr_id, int animation)
{
if(spr_id < 0 || spr_id >= rc_sprite.size())
return -1;
if(!rc_sprite[spr_id].active)
return -1;
if(animation < 0 || animation >= rc_sprite[spr_id].animation.size())
return -1;
return rc_sprite[spr_id].animation[animation].src_image_id;
}
void rc_setSpriteAnimationSpeed(int spr_id, int animation, double fps)
{
if(spr_id < 0 || spr_id >= rc_sprite.size())