Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Farming event system

Can someone show me how to make a farming event system or make a demo for me?
I need it to be simple though, and the intended build is:
+You need two items, Watering Can and Shovel. Shovel is needed to bury the seed for the crop, and the watering can is used to water it.
+Eventually, if not ignored and watered every now and then, the crop will grow, where the player can get items from the crop/tree, which if possible, will disappear and eventually regenerate.
+Crops/Trees have the ability to "die." if ignored or after some extend of time, even after being taken care of very good.
 
Essentially you need to learn how to use timers in common events. 20-40 frames is about a second, so if you have a common event running doing all your background processes (all in the one event mind, to save resources) you can do systems like this.

Something like:

Common event:
- wait 999 frames
- change variable [0001: Timer] + 1000
- wait 999 frames
- etc

Then in your conditional branches of your farming events you have different pages, with conditions for "timer is 10000, timer is 20000" and have each one reset the timer (change the variable to 0).
 
Not if you store it as a variable...
err, hmm...
this is getting complicated.

COmmon events would work for some of this, but you may be better off find a script for this. Eventing a whole farming system, with all features, is very complicated. You'd need a variable or two for each plant you grow, and if you can plant them whenever, wherever you want, it's not really going to work.

..Now that I think about it, there's a script for saving the states of events on a map. I'll see how that works, and get back to you when I can.

-abreaction
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top