#Decal Registry <staticMover/>
81 messages · Page 1 of 1 (latest)
almost certainly pixels
pixels... What is the starting point of the axis?
+X on the right and +Y on the bottom?
uh probably? idk what exactly you mean by that, but in celeste X+1 is more right and y+1 is more down
So theoratically...
<staticMover x="-32" y="-32" width="64" height="64"/>
should be right for a 64x64 decal?
from the looks of things the static mover attribute doesn't care about the size of the decal
huh? then how do I know where the collision box I set is?
I can't literally see it, lol
I think the x and y point it to what the decal should attach to, and the width/height tell it how big the thing it's attaching to is?
Huh?
I don't think so?
The decals are the same size putting on a same place
And staticMover is set the same
only one of 3 decals work
https://github.com/EverestAPI/Everest/blob/dev/Celeste.Mod.mm/Patches/Decal.cs#L205 is where everest defines it 🤷♀️ I'm not great at reading C# tho
okay I see what it's doing now but I think it matches how you originally thought it work 
can you show the 3 different setups you have and which one works/doesn't work
Mm...Wait a sec...
the cog
so the cog you see is divided into 3 parts, the outer wheel, the crossbar in the middle, and the inner circle
static movers are for attaching different entities together e.g. spikes attaching to zip movers/swapblocks/dashblocks are considered by code to be static movers
which exact cog are you talking about here and where is the switch gate
Hmm, alright, lol, I'll show you when I'm back at my computer
Is it clearer now?
yh, your static mover is in a solid, and it doesn't like that
don't think so
So. I checked the bee map in SJ...
the staticMover is x=y=1
and the size is 16x16
according to your suggestion, the collision box should be right next to the switch gate?
yes - but selecting a decal in the editor will only show the decal's selection rather than the static mover's hitbox
alright, let me show you what my decal is
this is it tearing apart
I placed them here and only the little circle works
the little circle was attached to the switchgate
all of them has the same staticmover parameters: x=-32, y=-32, w=h=64
So which part did I go wrong?
that is a good question 
hmm
okay I think debug hitboxes might show you where the static mover is getting placed (celestetas doesn't seem to at all)
Debug boxes?
the '~' button?
if that opens the debug menu then yh
I'll have a check...?
Hmm
no nothing
The rectangle one is switchgate
not the decal's
Only the circle went up, LOL
This is weird
maybe reduce the x and y attributes?
(wouldn't change the inner circle since it's working tho)
Alright, I solved the problem...
Turns out that the animation parameters can be controlled by setting the root folder, but not staticMover
the three pics are circle.png, wheel/wheel.png, and crossbar/crossbar.png
I can set the animation using only one line
But when it comes to static mover I have to set the root folder, wheel/ folder and crossbar/ folder