en:tutorials:objects:frame
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:tutorials:objects:frame [2020/08/31 12:37 (5 years ago)] – ↷ Page moved from en:tutorials:frame to en:tutorials:objects:frame sausage | en:tutorials:objects:frame [2025/09/30 17:26 (12 days ago)] (current) – external edit 127.0.0.1 |
---|
===== Summary ===== | ===== Summary ===== |
| |
See previous basic tutorials for more info about [[.objects:object|basic object creation]] and [[.clocks:clock|clock handling]]. | See previous basic tutorials for more info about [[object|basic object creation]] and [[..:clocks:clock|clock handling]]. |
| |
All objects' positions, scales and rotations are stored in ''orxFRAME'' structures.\\ | All objects' positions, scales and rotations are stored in ''orxFRAME'' structures.\\ |
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.1598877442.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)