Reproduce:
Code: Select all
//TEXTURES: Create a sprite with some empty space:
sprite JGLRA0, 14, 36
{
offset 7,36
sprite BON1D0,0,18
}
//ZSCRIPT:
version "4.11.1"
class jiggler : actor
{
default {+RollSprite;}
states {spawn: JGLR A -1; stop;}
override void tick()
{
roll = sin(360. * (level.time % 35 / 34.)) * 45;
super.tick();
}
}
class JRC : jiggler {default {+RollCenter}}
class JWS : jiggler {default {+WallSprite}}
class JWSRC : JWS {default {+RollCenter}}
class JFS : jiggler {default {+FlatSprite}}
class JFSRC : JFS {default {+RollCenter}}