Document Category Item: Tutorial > Advance Prop Sprite Animation!Back
Advance Prop Sprite Animation!
Description

It is possible to animate the prop using sprite animation.

There is 2 type of sprite animation.

"Frame by Frame" and "Atlas" animation.

Example:
vne_set_prop_sprite_animation(1, 3, 1, 1, 1, 1, 4, 1, 0, 0, 0) // type 1, loop frame 4 to end

or

vne_set_prop_sprite_animation(1, 3, 1, 2, 1, 1, 4, 1, 256, 256, 5) // type 2, loop frame 4 to end

If using type 2, the "Atlas" image has to be set using ""vne_set_prop()"!

 

For type 1, you need to manually set each frame.

Example:
vne_craft_prop_sprite_animation_frame(1, 3, 1, 1, 0, "image/prop_animation/knife_1.png")
vne_craft_prop_sprite_animation_frame(1, 3, 1, 2, 0, "image/prop_animation/knife_2.png")

 

NOTE: Basic and Advance Animation can be use at the same time!

Definition

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

vne_craft_prop_sprite_animation_frame(branchID, page, prop_id, animation_sequence, image_id, filename$)

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)/