Ok so i need a way to place the towers using grid system but the mouse only tracks pixels not grid
And i thought i could use a proximity to place it ton the closest grid block… Any suggestions?
I think there is an expression that is able to convert pixels to the nearest grid, but idk the formula, maybe @JR01 might know or has a better idea.
mk thank you
the placement object is supposed to follow the mouse
Is it set to a higher layer than everything? If not, you probably wanna set that layer up.
Use the “Set” and “Get” inputs for the number block
ill try that
what do you mean by that?
Ok know what forget what i said i want the placement to move smoothly by pixel not grid what i want is for when you place the tower it gets placed grid style make sense?
so i was thinking to use a proximity to find the closest object to your mouse and place it there the problem lies when you place the tower, the tower is not centered like a grid
example of bad:
example of what i want/good:
If you get the Grid movement, the spawn will be centered because the target would be centered.
You just needed to use “Set” and “Get” like I mentioned before:
Make sure both number blocks are set to “Round down” and the position block is set to “Grid”
it worked thinks my only problem was not rounding down! and putting the expressions on get…
thx @JR01