Surprised about using others assets

Well,
I lost my place for sure on this video…

dont know why the instructor did it like this for sure! ouch…

I will be back after finding out how to get the assets able to snap…
Got the 1st one … but not the enemy or the friendly’s
How do that happen?
How do i get the enemy block to snap or the friendly to snap?

At least show me one… (sink or swim works for a while but… come on)
I have googled and googled but do not seem to get a hint… i wish i could google better

Very frustrated… :frowning:

Just a FYI…

My son helped me identify the problem…

we changed the following code in cubeEditor:

BEFORE:

private void SnapToGrid()
{
    int gridSize = wayPoint.GetGridSize();

    transform.position = new Vector3(wayPoint.GetGridPos().x * gridSize, 0f, wayPoint.GetGridPos().y * gridSize);
}

AFTER:
private void SnapToGrid()
{
int gridSize = wayPoint.GetGridSize();

    transform.position = new Vector3(wayPoint.GetGridPos().x * gridSize, transform.position.y, wayPoint.GetGridPos().y * gridSize);
}

NOTE: the 0f was changed to transform.position.y
Now enemy snaps after putting script on it

Hi Steve,

I’m glad that your son was able to help you with this. Is the issue fixed now?

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms