edited May 9 in General Support
I've finished 90% of the tutorials now but there are some thing i cant get my head around. I'm trying to make rune factory prototype. I already quickly run through the discussions and cant find the answer. Here is the question.

Is it possible to make interactable farmland? I mean, with hoe .. i can make a farmland and with seeds i can plant on them. if its not possible with ork, can i make it with Makinom?

I'm sorry if its sound like a stupid question. I'm completely new to game development and a terrible coder. Thank you so much in advance.
Post edited by zacc on
  • It's possible, but somewhat complex. Generally, you'd use variables for this (and schematics, naturally :D).

    The easiest way would be to have fixed placed where you can do this, i.e. each plot where you can plant something is it's own game object with an Object Variables component to keep track of the plot's state.
    E.g. via an int variable:
    - 0 > not planted
    - 1 > potato planted
    - 2 > salad planted
    etc.

    Additional variables could keep track of growth, etc.

    Spawning the prefab for a plant (and growth state) can be handled by machines on the game object. E.g. if it only grows when entering the scene, just a simple Auto Machine that checks what's planted and the growth and spawns the needed prefab.
    Or, have all plants/states already on the prefab and use a Game Object Manager instead to enable/disable them based on variables.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • That's exactly what i needed. Thank you so much!
Sign In or Register to comment.