Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gdevelop5:interface:preview [2020/06/28 14:59] 4ian [Launch a preview of the scene] |
gdevelop5:interface:preview [2020/12/26 13:56] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
{{ : | {{ : | ||
- | _From left to right: 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 the " | You can also access more options by right clicking the " | ||
+ | |||
+ | After you click the " | ||
+ | |||
+ | {{: | ||
## Launch a preview of a scene | ## Launch a preview of a scene | ||
Line 15: | Line 19: | ||
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 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 |