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)),
		bombPrefab.transform.rotation);

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

https://www.raywenderlich.com/167052/bomberman-tutorial-fun-blowing-friends

Thank you! :]

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