Group Group Group Group Group Group Group Group Group

Snapping to grid problem

#1

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);
#2

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

Thank you! :]

closed #3

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