idontknow
03-19-2006, 12:11 PM
Here's how to make an effective day/night system, where you warp every x minutes when on the overworld, even after traveling across screens. (To use only for beta 9)
Say you want the player to warp from day to night & vise-versa every 2 minutes of being on the overworld, even after moving from screen to screen. Simply do the following:
1) Make 2 dmaps: One for the day overworld, the other for your night overworld. The day overworld should have a normal or bright pallette whereas the night overworld's pallette should be dark. Perhaps in the day have lively NPCs and in the night have stalfos enemies & NPCs that are sleeping or no longer there.
2) Make 2 combos: The first should be 72 tiles and 100 tics (or 100 tiles & 72 tics) Why? Because lets break down the amount of time needed for the cyclng of day & night like this:
-60 tics in a sec
-60 sec in a minute
-2 minutes in a cycle
So: 60x60x2=7200 tics
Therefore the warp needs to occur after the first combo changes to the next, approximately 7200 tics, the equivalent of 2 minutes.
*f you want to change the amount of time the warp takes place to X minutes, multiply 3600 (number of tics in a minute) by X (3600 for 1 minute, 7200 for 2 minutes, 10800 for 3 minutes, etc. This is how many tics the first combo needs to last, so for ease, you could then divide this number by 100, and that's the number of A. Frames you need with an A. Speed of 100.
3) The first combo's type should be 'none' and its 'next' combo must be the 2nd combo you're going to make, and then it should be placed on every single screen of your overworld, for both day & night dmaps. If necessary, you could hide it by placing something over it on any layer. (Keep in mind, this combo must be on layer 0 for this to work)
4) The second combo's type must be Autowarp [A]. This makes it so that when appearing on screen, that is, after being cycled to, Link will warp automatically, even if he is not touching that combo. See where i'm going with this? Because you have a combo that takes 7200 tics or about 2 minutes to cycle to this Autowarp, Link will warp after that much time. The 'timer' for each screen is really the first combo, who's animation never resets, only combo cycling resets once it has taken place (like after warping)
5) Now, you need to go to 'Side Warp' and set tab A's warp destination to that of the same screen coordinate but on the night dmap. So, say dmap 0 is your day overworld. Dmap 1 is your night. On dmap 0, each screen needs to lead to the same coordinate on dmap 1. (And vise-versa) Repeat this for your night overworld.
6) Also, on each overworld screen (and on both night & day versions), you need to check the screen flags "Direct Autowarp"
7) Repeat steps 5 & 6 for each screen for both overworld versions (both day & night dmaps). This can be tedious, to set up a sidewarp for all screens and making sure to check that the warps are direct. Also make sure that each screen has the first tile you created in step 1, so that when on any screen in your overworld, you will automatically warp when the autowarp appears, in other words, after every 2 minutes.
8) If you want it so that when something happens on a day screen, something else takes effect on that screen's night time version, you need to go to the day time screen and go to screen data. Click on the third tab (special data) Here you can set the Map # and the coordinate # of the night screen. This is Room State Carry Over. This makes it so if you trigger secrets here, then secrets are triggered on the night screen as well.
If you go to the night screen & set the data for the Room State Carry Over screen to that of the day screen, then the opposite will be true; if you then trigger secrets on the night screen, secrets on the day screen will be triggered too. You could also do this for both screens so that triggering secrets on either overworld will effect the opposite overworld (day to night, or night to day) This isn't required for all screens, just any screens where you want changes in day to cause changes at night & vise versa.
Say you want the player to warp from day to night & vise-versa every 2 minutes of being on the overworld, even after moving from screen to screen. Simply do the following:
1) Make 2 dmaps: One for the day overworld, the other for your night overworld. The day overworld should have a normal or bright pallette whereas the night overworld's pallette should be dark. Perhaps in the day have lively NPCs and in the night have stalfos enemies & NPCs that are sleeping or no longer there.
2) Make 2 combos: The first should be 72 tiles and 100 tics (or 100 tiles & 72 tics) Why? Because lets break down the amount of time needed for the cyclng of day & night like this:
-60 tics in a sec
-60 sec in a minute
-2 minutes in a cycle
So: 60x60x2=7200 tics
Therefore the warp needs to occur after the first combo changes to the next, approximately 7200 tics, the equivalent of 2 minutes.
*f you want to change the amount of time the warp takes place to X minutes, multiply 3600 (number of tics in a minute) by X (3600 for 1 minute, 7200 for 2 minutes, 10800 for 3 minutes, etc. This is how many tics the first combo needs to last, so for ease, you could then divide this number by 100, and that's the number of A. Frames you need with an A. Speed of 100.
3) The first combo's type should be 'none' and its 'next' combo must be the 2nd combo you're going to make, and then it should be placed on every single screen of your overworld, for both day & night dmaps. If necessary, you could hide it by placing something over it on any layer. (Keep in mind, this combo must be on layer 0 for this to work)
4) The second combo's type must be Autowarp [A]. This makes it so that when appearing on screen, that is, after being cycled to, Link will warp automatically, even if he is not touching that combo. See where i'm going with this? Because you have a combo that takes 7200 tics or about 2 minutes to cycle to this Autowarp, Link will warp after that much time. The 'timer' for each screen is really the first combo, who's animation never resets, only combo cycling resets once it has taken place (like after warping)
5) Now, you need to go to 'Side Warp' and set tab A's warp destination to that of the same screen coordinate but on the night dmap. So, say dmap 0 is your day overworld. Dmap 1 is your night. On dmap 0, each screen needs to lead to the same coordinate on dmap 1. (And vise-versa) Repeat this for your night overworld.
6) Also, on each overworld screen (and on both night & day versions), you need to check the screen flags "Direct Autowarp"
7) Repeat steps 5 & 6 for each screen for both overworld versions (both day & night dmaps). This can be tedious, to set up a sidewarp for all screens and making sure to check that the warps are direct. Also make sure that each screen has the first tile you created in step 1, so that when on any screen in your overworld, you will automatically warp when the autowarp appears, in other words, after every 2 minutes.
8) If you want it so that when something happens on a day screen, something else takes effect on that screen's night time version, you need to go to the day time screen and go to screen data. Click on the third tab (special data) Here you can set the Map # and the coordinate # of the night screen. This is Room State Carry Over. This makes it so if you trigger secrets here, then secrets are triggered on the night screen as well.
If you go to the night screen & set the data for the Room State Carry Over screen to that of the day screen, then the opposite will be true; if you then trigger secrets on the night screen, secrets on the day screen will be triggered too. You could also do this for both screens so that triggering secrets on either overworld will effect the opposite overworld (day to night, or night to day) This isn't required for all screens, just any screens where you want changes in day to cause changes at night & vise versa.