Coding help

I need help with something. I’m making a ball so that when rolls, it get more mossy. Now I have done the dynamic material and the first half, but the second half is getting on my nerves.

Here is the first half:

Here the second half:

What wrong with the second half?

I’m presuming this is a sphere with physics enabled ( otherwise it won’t move )?

In the second piece of code, you don’t need to keep adding to the distance, just calculate it on every tick.

Also, I think you have the parameters the wrong way around in the map range node.

This doesn’t mean anything in the level BP

image

The level BP doesn’t have a location…

This does it

moss

Even easier if you put the ball in a blueprint

Thank you for the help

1 Like