#Repeating switchgate tile texture
40 messages · Page 1 of 1 (latest)
they are not supposed to be random
i don't think you can do this
you can look at Sprites.xml
yeah I couldnt even find the line for these in it
then yeah, you can't randomize them without code mod
you could make different thing
you can make decal
which attach to block
and instead of having sprite for block you just add many decals

oh yeah I can try that
Looks good like this but i cant attatch them to the actual movement of the block
to attach a decal, you need a DecalRegistry.xml
look for staticMover
okay thanks
would something like this work?
<decals>
<decal path="DJ/starjump_increased/">
<staticMover x(168) y(64) width(16) height(72)/>
</decal>
</decals>
nope
<decals>
<decal path="DJ/starjump_increased/">
<staticMover x="168" y="64" width="16" height="72" />
</decal>
</decals>
okay i will try that real quick
this means all your decals in starjump_increased will have the same properties
Okay I see what i did now
Well It didnt crash this time but it still didnt move the decals
wait your static mover is 168 pixels right and 64 pixels up from the actual decal
i think you want
<staticMover x="0" y="0" width="8" height="8" />
oh does that mean the dimensions of the decal
no, this means the dimentions of the attachment to the solid block
x="0" y="0" here means "the attachment's top left corner is in the same place as the top left corner of the decal"
width="8" height="8" means "the attachment rectangle is 8 pixels wide and tall"
okay I didnt realize it was relative to the decal
oh wait it's to the CENTER of the decal
i thought it wanted world coords
so you want x="-4" y="-4"