Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This extension allows to make the day-night cycle in gdevelop easy. Finally able to use for 3d.
Author: @Byson94
Version: 1.1.4
How to use the extension
How to use the extension:
•You are currently provided with 1 condition and 4 actions.
Action 1:
This action with the name "start day night cycle" allows us to start the day-night cycle, and if you've saved it before with the save action then the game will load it instead. Remember to add no condition to this to make it work continuous. This action need a dark Sprite like a black coloured Sprite to simulate the darkness. Now we need to add how much opacity we adds to the darkness simulator Sprite, here you can add how much darkness we add every second.
Action 2:
This action helps the user to start the game at night! And the one thing to remember in this action is to put the object that you used to simulate night darkness into the object sprite column.
Action 3 and 4:
These action are to save and clear saved data.
Things to remember in action 1:
This action has a few things to remember. You have a few things to remember in this action. As you've given a Sprite to simulate darkness, DONT ADD THAT TO THE SCENE! This action is done by the action. NOW THE MOST IMPORTANT THING, YOU NEED TO ADD THE SPRITE THAT SIMULATE DARKNESS THE Z-ORDER THAT MATCHES YOUR GAME.
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
gdevelop-example.zip
Extension file
DayNightCycle.zip