This is one of the biggest questions about making games for me. How to make a day-night cycle in a 2D Top-Down shooter? I’ve been searching for a long time, but i found nothing about a top down shooter day-night cycle.
Can anyone help me?
This is one of the biggest questions about making games for me. How to make a day-night cycle in a 2D Top-Down shooter? I’ve been searching for a long time, but i found nothing about a top down shooter day-night cycle.
Can anyone help me?
Same as any other game, except that since you can’t see the sky itself, you’ll have to convey the time of day by the angle and colour of the light cast on the scene - orange/yellow with long shadows at dawn, white with short shadows at noon, orange/pink with long shadows in the opposite direction at sunset, blue at night with faint moonshadows.
Set up a directional light and play around with controlling it’s direction, colour and brightness from code.
[EDIT: Sorry, missed the “2D”. In that case you’ll have to just tint your sprites - although there are some 2D shadow-approximating plugins you could try.]