Document Category Item: Background Advance Sprite Animation > vne_set_bg_sprite_animation()Back
vne_set_bg_sprite_animation()
Description

This enable sprite animation for the background.

branchID - the current branch

page - the current page

animation_type - 1 for per frame image animation and 2 for atlas image animation

has_loop - has loop?

has_continuation - to be use if animation continue more than one page

sprite_animation_loop_start - start the loop from which frame? Can be use for talking animation then idle animation

fps - the frame per second to animate

atlas_width - only use if type = 2

atlas_height - only use if type = 2

atlas_amount - only use if type = 2

NOTE: Type 2 required "vne_set_bg()" "image_id" or "filename$" to be set as the atlas image!

Definition

vne_set_bg_sprite_animation(branchID, page, animation_type, has_loop, has_continuation, sprite_animation_loop_start, fps, atlas_width, atlas_height, atlas_amount)

Due to a Cookie law, We are required to notify you that our site is using Cookie(s).
Cookie(s) allow us to provide site services in order to serve you!
You may view our Privacy Policy @ https://visualnovelengine.com/Privacy-Policy/
You may view our Term of Service(s) @ https://visualnovelengine.com/Term of Service(s)/