This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:tutorials:objects:command_hooks [2021/08/10 08:01 (4 years ago)] – created sausage | en:tutorials:objects:command_hooks [2025/09/30 17:26 (6 weeks ago)] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| Compile and run the project to first check that the spinning logo is working. We can pretend that the logo is our game itself or a welcome scene for a game. | Compile and run the project to first check that the spinning logo is working. We can pretend that the logo is our game itself or a welcome scene for a game. | ||
| - | Remove the scene creation line from the '' | + | Instead of displaying |
| - | + | ||
| - | <code ini> | + | |
| - | orxObject_CreateFromConfig(" | + | |
| - | </ | + | |
| - | + | ||
| - | Now we are left with a black screen for the moment. | + | |
| <code ini> | <code ini> | ||
| Line 55: | Line 49: | ||
| In the above, we have a '' | In the above, we have a '' | ||
| + | |||
| + | To make this credit object appear, change the scene creation line from the '' | ||
| + | |||
| + | <code ini> | ||
| + | orxObject_CreateFromConfig(" | ||
| + | </ | ||
| + | |||
| + | to become: | ||
| + | |||
| + | <code ini> | ||
| + | orxObject_CreateFromConfig(" | ||
| + | </ | ||
| Compile and run. The credit will appear and then fade out. | Compile and run. The credit will appear and then fade out. | ||
| Line 62: | Line 68: | ||
| We want to create the '' | We want to create the '' | ||
| - | Let's do this in two steps. First, to delete the '' | + | Let's do this in two steps. First, to delete the '' |
| <code ini> | <code ini> | ||
| Line 89: | Line 95: | ||
| {{ : | {{ : | ||
| {{ : | {{ : | ||
| + | |||
| + | |||
| That it. Probably the easiest usage example, but also a very handy one for swapping between intro screens, slide shows, titles, all sort of similar things. | That it. Probably the easiest usage example, but also a very handy one for swapping between intro screens, slide shows, titles, all sort of similar things. | ||