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:objects:frame [2020/09/01 01:18 (5 years ago)] – ↷ Links adapted because of a move operation 66.249.64.26en:tutorials:objects:frame [2025/09/30 17:26 (12 days ago)] (current) – external edit 127.0.0.1
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.1598923086.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)