Steam 설치
로그인
|
언어
简体中文(중국어 간체)
繁體中文(중국어 번체)
日本語(일본어)
ไทย(태국어)
Български(불가리아어)
Čeština(체코어)
Dansk(덴마크어)
Deutsch(독일어)
English(영어)
Español - España(스페인어 - 스페인)
Español - Latinoamérica(스페인어 - 중남미)
Ελληνικά(그리스어)
Français(프랑스어)
Italiano(이탈리아어)
Bahasa Indonesia(인도네시아어)
Magyar(헝가리어)
Nederlands(네덜란드어)
Norsk(노르웨이어)
Polski(폴란드어)
Português(포르투갈어 - 포르투갈)
Português - Brasil(포르투갈어 - 브라질)
Română(루마니아어)
Русский(러시아어)
Suomi(핀란드어)
Svenska(스웨덴어)
Türkçe(튀르키예어)
Tiếng Việt(베트남어)
Українська(우크라이나어)
번역 관련 문제 보고
Rather than growing the crops every time update, you could call it only when, e.g., the hours roll over to a new game day. That'll work, but will sync all growth variables to the current game day. This isn't necessarily a bad thing: it's the approach used in Stardew Valley, for example. Or you could increase the "time resolution" a bit by updating every game hour (or minute). Naturally, it's up to you how you implement things~
Could you give me an example of how I would go about this? specifically how I would call an event from my time event. My time system is very basic wait 60 frames add to the minutes variable, once minutes reaches 60 it resets and minutes to 0 and adds 1 to the hour variable etc.
here is my current farming set up in case you are interested. I inted to change it a lot once I figure out how to make it dependent on my time variables.
https://imgur.com/a/a5IId6t
https://imgur.com/a/NlIi5Ch
https://imgur.com/a/vSndDao
https://imgur.com/a/mEq9t89
As for when to call it: you could call it at the end of your Time event, so it updates (like you say) every 60 frames. Or you could call it once per game hour by finding the branch where minutes roll over to hours and sticking it in there, e.g.
If you're still confused, hang on and I'll see if I can make a little time/weather/farming demo project for the Workshop~
[Edit: changed "Plot 1" variable condition in first example, whoops.]
A workshop item would help so much :D
Lots of different ways to do this sort of stuff, too, so feel free to redo it in your own style if you like~ ^_^
This looks amazing I cant wait explore it! I'm actually already using SelfSwitches/Variables, I will have to download the Event Morpher.
I tried copying what you did in my game and I managed to get it so I can plant the crops and they begin to grow but I am running into something strange and I can't figure out what is causing it. For some reason when the plants reach maturity they just disappear, I suspect this is because Under the "Harvest Crop" common event we set the crop id to 0 but I cant tell what you did differently than me. here are some picture of my events.
https://imgur.com/a/NOqXMl1
https://imgur.com/a/vo7z6kb
https://imgur.com/a/u5faVWA
Also I am not sure if this is relavent but I thought I better include it just incase. I tried changing the system a little bit to work with Moghunters time system https://atelierrgss.wordpress.com/rmv-time-system/ and to have the crops update daily rather than hourly so here are the related event for that.
Sleeping event https://imgur.com/a/PkbcAA5
time common event https://imgur.com/a/avIGNkL (you'll notice I only have the 1 thing in the time common event. I am trying to make it so if the player stays awake into the next day the crops will update even without them sleeping. (I also set the hour variable in mog hunters time system to 448.) )
Are your plant sprites from the tileset or from character sprite sheets? If the latter, make sure you have Direction Fix ON (and Stepping OFF unless they're animated).
You could also press F9 during playtest to check the values of your variables, maybe something's going wrong somewhere with the value assignment.
The sleep event looks OK, but note that the "time" event will repeat every frame that the Hour variable is at least 23. I'm guessing you only want it to run once per game day, so maybe consider having a switch to track if it's already run this day, e.g.
I'm not familiar with Mog's plugin, but it looks like it'll help a lot with smoothing out the tint transitions! ^w^
after spending mroe time looking at it I still am not finding what is wrong. I uploaded the game I was testing this on to the steam workshop, if it isn't too much too ask would you look at it and see if you can find the problem?
https://steamcommunity.com/sharedfiles/filedetails/?id=1741320866
I will continue to look at it and update if I figure it out.
Since your plants are all character sprites, you should check the Direction Fix option on each of the event pages to make sure their sprites don't change when activated from different directions. You can find the Direction Fix checkbox in the bottom-left of the event editing window, in the small box titled "Options". =)
And in case you weren't aware: this version of your project doesn't have event calls to update crops/weather when you sleep. Also, the crops update every 3 seconds between 11 pm and midnight. o.o
Works like a charm!!! :D
I really can't thank you enough for all this help!
Should I set it to wait 999 frames?
If you want to use a wait time I'd suggest waiting at least one game hour; not sure how long that is, but you can put multiple wait commands one after another if need be. Put those waits inside the branch otherwise the event might be waiting when it's supposed to update the crop timers. Example:
I also tried to fill in the gaps in the comments; there's a bit more script stuff but hopefully it's not confusing! ^_^'
It took a little bit of work because my item numbers where different from yours but I got it working :D I now have a full farming system. I think I will use this template you made and try to use it to also build my player store system.