#Repeating switchgate tile texture

40 messages · Page 1 of 1 (latest)

strong fjord
#

Does anybody know how to slightly randomize a custom switchgate texture so that it doesn't look as repetitive?

drowsy hare
#

they are not supposed to be random

#

i don't think you can do this

#

you can look at Sprites.xml

strong fjord
#

yeah I couldnt even find the line for these in it

drowsy hare
#

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

strong fjord
#

oh yeah I can try that

strong fjord
#

Looks good like this but i cant attatch them to the actual movement of the block

bright pond
#

to attach a decal, you need a DecalRegistry.xml

GitHub

Celeste modding resources collected and maintained by the community. Feel free to submit a PR or edit the wiki. - EverestAPI/Resources

#

look for staticMover

strong fjord
#

okay thanks

strong fjord
#

would something like this work?

#

<decals>
<decal path="DJ/starjump_increased/">
<staticMover x(168) y(64) width(16) height(72)/>
</decal>
</decals>

bright pond
#

nope

#
<decals>
  <decal path="DJ/starjump_increased/">
    <staticMover x="168" y="64" width="16" height="72" />
  </decal>
</decals>
strong fjord
#

okay i will try that real quick

bright pond
#

this means all your decals in starjump_increased will have the same properties

strong fjord
#

Okay I see what i did now

#

Well It didnt crash this time but it still didnt move the decals

bright pond
#

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" />
strong fjord
#

oh does that mean the dimensions of the decal

bright pond
#

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"

strong fjord
#

okay I didnt realize it was relative to the decal

bright pond
#

oh wait it's to the CENTER of the decal

strong fjord
#

i thought it wanted world coords

bright pond
#

so you want x="-4" y="-4"

strong fjord
#

okay

#

will this work if I just reload my level or do I need to close out the game for XML changes?

bright pond
#

think reloading should work

#

if not, ctrl+f5 to quick restart

strong fjord
#

kay thanks

#

nice that worked