Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mutoit on November 24, 2017, 08:24:47 PM

Title: Substituye trees for gameobjects
Post by: mutoit on November 24, 2017, 08:24:47 PM
hello anyone can help me to understand how to do this ?
the thing is in certain distance, detect this tree ,delete, and make another gameobject for farm, for example.
Thanks
Title: Re: Substituye trees for gameobjects
Post by: Fat Pug Studio on November 25, 2017, 08:12:09 AM
You can get distance and compare float every frame, or use conditional expression. When it gets under the threshold, get the tree position, destroy it, and create farm using the tree position.
Title: Re: Substituye trees for gameobjects
Post by: mutoit on November 27, 2017, 04:53:08 AM
could u explain a bit more ? i dont understand how/why i can use floats ,if i want to destroy gameobjects,,,,
Thz
Title: Re: Substituye trees for gameobjects
Post by: mutoit on November 28, 2017, 07:21:08 AM
Hello someone making a " farming " game, wood etc, can help me plz