playMaker

Author Topic: Substituye trees for gameobjects  (Read 1309 times)

mutoit

  • Playmaker Newbie
  • *
  • Posts: 25
Substituye trees for gameobjects
« 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

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Substituye trees for gameobjects
« Reply #1 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.
Available for Playmaker work

mutoit

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Substituye trees for gameobjects
« Reply #2 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

mutoit

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Substituye trees for gameobjects
« Reply #3 on: November 28, 2017, 07:21:08 AM »
Hello someone making a " farming " game, wood etc, can help me plz