User Tools

Site Tools


en:tutorials:objects:frame

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:tutorials:frame [2020/08/11 21:50 (4 years ago)] – bitbucket -> github iarwainen:tutorials:objects:frame [2022/12/06 13:38 (16 months ago)] (current) iarwain
Line 3: Line 3:
 ===== Summary ===== ===== Summary =====
  
-See previous basic tutorials for more info about [[object|basic object creation]] and [[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.\\
Line 48: Line 48:
 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.1597207841.txt.gz · Last modified: 2020/08/11 21:50 (4 years ago) by iarwain