Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gdevelop5:interface:preview [2020/06/28 13:30] 4ian created |
gdevelop5:interface:preview [2020/12/26 13:56] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
{{ : | {{ : | ||
- | _In order: The Project Manager button, the Export button, the Preview | + | _From left to right: the Project Manager button, the Export button, the Play button and the Debug button._ |
- | You can also access more options by right clicking | + | You can also access more options by right clicking |
- | ## Launch | + | After you click the " |
- | By clicking on the " | + | {{: |
+ | |||
+ | ## Launch a preview of a scene | ||
+ | |||
+ | By clicking on the " | ||
{{ : | {{ : | ||
The preview will open in a separate window. Close the preview window to end it. | The preview will open in a separate window. Close the preview window to end it. | ||
+ | |||
+ | ### Apply your changes to your live preview | ||
+ | |||
+ | When the preview of your game is running, you can click again the Play button to apply any changes that you made in the editor to your preview. This is very useful for example to design the level of your game while playing to it, allowing you to quickly see and test the result without having to restart from the beginning of the level after each change. | ||
+ | |||
+ | When a preview is running in a window, the " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | After clicking on it, GDevelop will internally re-generate the game and will then update the preview. Any modification on objects, in the scene, in events, layers, variables or extensions will be reflected in the preview: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <note tip>This is especially useful when you want to do some tweaks to your game, like changing the parameters of effects or the properties of the behavior of an object, and see the result directly. It's also useful to check how your events are working without restarting your preview from the beginning.</ | ||
+ | |||
+ | Some editors also include a button allowing you to start a preview or apply changes that you made directly from the editor: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | When clicked, changes that you've made in the current editor will be applied to your preview(s). | ||
+ | |||
+ | Note that in certain rare cases, GDevelop will be unable to apply your changes to the preview. In this case, a dialog will invite you to close the preview and launch a new one from scratch. If you also need to restart from the beginning, because for example you destroyed an enemy and want to try it again, just close the window and click the " | ||
+ | |||
+ | ### Start multiple live previews | ||
+ | |||
+ | While a preview is running, you can right click the " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | You can click the Play button to apply changes made in the editor, and all the running previews will be updated. | ||
+ | |||
+ | ### Overriding the scene used to start the preview | ||
+ | |||
+ | By default, the preview starts with the scene that you're currently editing. If you want to force GDevelop to start your game from another scene, open first this scene, then make a right click on the " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | A flag will be added on the icon to remind you that the preview is always starting from the chosen scene, even if you're editing another one. | ||
+ | |||
+ | You can later remove this setting by using the same menu and uncheck the option: | ||
+ | |||
+ | {{ : | ||
## Launch a Network preview (Preview over WiFi/LAN) | ## Launch a Network preview (Preview over WiFi/LAN) | ||
Line 20: | Line 66: | ||
By clicking the " | By clicking the " | ||
- | {{ : | + | {{ : |
After clicking the button, a window will appear showing the address the preview is being launched on: | After clicking the button, a window will appear showing the address the preview is being launched on: | ||
Line 29: | Line 75: | ||
{{ : | {{ : | ||
- | <note tip>You can close the pop-up window in the editor and continue to edit your game. If you launch a new preview, the mobile devices and any connected | + | You can now close the pop-up window in the editor and continue to edit your game. When you click on the button to apply the changes to the preview, |
+ | |||
+ | You can also hit the " | ||
## Launch a preview with the Debugger and the Profiler | ## Launch a preview with the Debugger and the Profiler | ||
- | The **Debugger** is a tool that can be used to inspect the content of your game (values of variables, existing instances and their properties...) and even do some real-time editing. The **profiler** is a tool to inspect the performance of your game. | + | The **Debugger** is a tool that can be used to inspect the content of your game (values of variables, existing instances and their properties...) and even do some real-time editing. The **Profiler** is a tool to inspect the performance of your game. |
You can launch the debugger using this icon: | You can launch the debugger using this icon: | ||
- | {{ : | + | {{ : |
[[gdevelop5: | [[gdevelop5: |