No align to grid?

i just tried cocos creator recently but i dont see such basic function as align pivot to grid ? or align vertex of 1 object to to vertex of other object… very useful for aligning 2d platform games… or setup grid size… am i missing something or this stuff rly isnt there ?

second question, is the creator editor open source or just the engine ?

thx

this is achieved through components, you want to play around with the Widget component and the Layout component

Widget works by anchoring to parent or ancestor nodes
Layout works by arranging children nodes

On a side note, it’s pretty disappointing that a question like this goes unanswered for 2 days.

thx for answer, i tried layout/widget stuff but i think u mean different thing…

i want to snap sprites to the grid so that each sprite/tile anchor is exactly at grid step… in other programs, u just hold down Ctrl or some key while moving something and it snaps the anchor to the grid… and i dont want to use tilemap/other program for making map…

ohh i see what you mean, no i don’t believe that CC has “snap to place” feature for arranging nodes in the scene view.

you just have to zoom and using the x, y values to tweak it to be just right, a pain yes