Guest User

process function

a guest
Oct 25th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDScript 0.42 KB | Source Code | 0 0
  1. func _process(_delta):
  2.     print( "Frame " + str(sprite.frame) )
  3.     print( "Anim Length " + str(sprite.sprite_frames.get_frame_count(sprite.animation)-1.0) )
  4.     print( "Resulting Frame " + str((sprite.frame+0.0)/(sprite.sprite_frames.get_frame_count(sprite.animation)-1.0) ))
  5.     afterimages.process_material.set_shader_parameter( "tex_anim_offset", (sprite.frame+0.0)/(sprite.sprite_frames.get_frame_count(sprite.animation)-1.0) )
  6.  
Advertisement
Add Comment
Please, Sign In to add comment