User Tools

Site Tools


en:examples:animation:animation_frame_overriding

This is an old revision of the document!


Animation frame overriding

Assets

Code

orxObject_CreateFromConfig("JellyObject");

Config

[JellyObject]
Graphic      = JellyGraphic
AnimationSet = JellyAnimationSet
Position     = (200, 100, 0)
 
[JellyGraphic]
Texture		= jelly.png
TextureOrigin	= (0, 0, 0)
TextureSize	= (32, 32, 0)
Pivot		= center
 
[JellyAnimationSet]
Texture			= jelly.png
FrameSize		= (32, 32, 0)
KeyDuration 		= 0.1
StartAnim		= JellyWobbleAnim
Pivot			= center
; The two following lines are not necessary anymore as they're now identical to the default behavior (as many frames as can fit in the texture + automatically looping onto self)
JellyWobbleAnim		= -1
JellyWobbleAnim->	= JellyWobbleAnim
 
[JellyWobbleAnim0003]
TextureOrigin = (0, 0, 0)
 
[JellyWobbleAnim0004]
TextureOrigin = (64, 0, 0)
en/examples/animation/animation_frame_overriding.1533748072.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)