Snapping to grid problem

can any help me out on how to instantiate bomb from player to tile grid from this bomberman tutorial iam unable to solve this issue . if any one can solve this it will be appreciated a lot. thank you.

Instantiate(bombPrefab, new Vector3(Mathf.RoundToInt(mytransform.position.x), 
		bombPrefab.transform.position.y, Mathf.RoundToInt(mytransform.position.z)),

@kishore5432 Please post your question in the tutorial’s thread in order to get proper assistance with it:

Thank you! :]

This topic was automatically closed after 166 days. New replies are no longer allowed.