playMaker

Author Topic: Changing the texture on a terrain  (Read 2334 times)

mitchelq

  • Guest
Changing the texture on a terrain
« on: June 01, 2015, 01:34:58 PM »
Hello,

I want to paint/change textures on a terrain during runtime. I have found this post:

http://hutonggames.com/playmakerforum/index.php?topic=5201.msg24803#msg24803

Which lets you get what texture is at a specific place on the terrain, but I want to be able to change that texture. I want to use it for walking paths, which I believe I have seen in settlers 7 (long time ago). It should work like this: Whenever a character walks over a specific area many times I want the grass texture to be replaced by a sand texture.
Also I would like to use it to let the player select a specific area where the character starts to plow and sow seeds.

I believe this link has got the non-playmaker solution, but I don't understand a thing as I haven't got coding skills.

http://answers.unity3d.com/questions/178661/update-terrain-alphamap-at-runtime-makes-my-game-c.html

Best regards,

Mitchel