en:tutorials:objects:frame
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
en:tutorials:objects:frame [2020/08/31 18:18 (4 years ago)] – ↷ Links adapted because of a move operation 66.249.64.26 | en:tutorials:objects:frame [2022/12/06 13:38 (16 months ago)] (current) – iarwain |
---|
We then look for the main clock and register our ''Update'' function to it. This function is where we'll manage the inputs to scale/rotate the ''ParentObject'' and make sure it'll follow our mouse cursor. ((Remember to always use the main clock for callbacks that will handle inputs!)) | We then look for the main clock and register our ''Update'' function to it. This function is where we'll manage the inputs to scale/rotate the ''ParentObject'' and make sure it'll follow our mouse cursor. ((Remember to always use the main clock for callbacks that will handle inputs!)) |
| |
<code c>pstClock = orxClock_FindFirst(orx2F(-1.0f), orxCLOCK_TYPE_CORE); | <code c>pstClock = orxClock_Get(orxCLOCK_KZ_CORE); |
| |
orxClock_Register(pstClock, Update, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_NORMAL);</code> | orxClock_Register(pstClock, Update, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_NORMAL);</code> |
en/tutorials/objects/frame.txt · Last modified: 2022/12/06 13:38 (16 months ago) by iarwain