8,018
edits
Paradox-01 (talk | contribs) m (Pause game) |
Paradox-01 (talk | contribs) m (Pause game) |
||
Line 9: | Line 9: | ||
==Mouse cursor== | ==Mouse cursor== | ||
Tested in | [[Image:UnrealOni_mouse_cursor_construction.png|right|thumb|User widget with mouse cursor texture]] | ||
[[Image:UnrealOni_mouse_cursor_settings.png|right|thumb|Assigning a new mouse cursor]] | |||
Tested in version 4.18, 4.22 | |||
* create a png with transparent edges, import it | * create a png with transparent edges, import it | ||
Line 27: | Line 29: | ||
==User Input== | ==User Input== | ||
===Key binding=== | ===Key binding=== | ||
... | [[Image:UnrealOni_key_binding.png|right|thumb|Key binding]] | ||
You can bind actions to key (or other inputs) by going into Project Settings > Engine > Input. | |||
Multiple keys for one action are also possible. | |||
Note how movements use a scale for allow for eventually different direction values. | |||
===Processing=== | ===Processing=== | ||
Line 43: | Line 53: | ||
===Ignore inputs and pause game=== | ===Ignore inputs and pause game=== | ||
[[Image:UnrealOni_pause_game_basics.png|right|thumb| | [[Image:UnrealOni_pause_game_basics.png|right|thumb|pause game]] | ||
Since F1 is used to switch into wireframe mode in UEditor, we will bind H to pause the game. | Since F1 is used to switch into wireframe mode in UEditor, we will bind H to pause the game. | ||
Normally | Normally key inputs are ignored when the game is paused. | ||
In order to unpause the game we need to set the key to "Execute when Paused [x]" in the details panel. | In order to unpause the game we need to set the key to "Execute when Paused [x]" in the details panel. | ||
Theoretically a flipflop could be used to register the second key input but the game could have been paused by other means so it is better to use an variable here. Luckily Unreal provides just that as a boolean node. | |||
To let the game behave like a typical game pause inputs for character move and look are ignored. This is actually redundant as the game is paused. | To let the game behave like a typical game pause inputs for character move and look are ignored. This is actually redundant as the game is paused. | ||
: We can recycle those ignore nodes later for game menus that don't require the game to pause. | : We can recycle those ignore nodes later for game menus that don't require the game to pause. |
edits