User Tools

Site Tools


en:tutorials:scrollobject_along_a_curve

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tutorials:scrollobject_along_a_curve [2018/01/16 15:02 (2 years ago)]
iarwain [Assets]
en:tutorials:scrollobject_along_a_curve [2018/02/14 08:46 (2 years ago)] (current)
Line 6: Line 6:
  
  
-You can follow [[tutorials:​creating_your_own_scroll_project_using_init|this tutorial to help you set up a new orx/Scroll project]]. Once set up, create a ScrollObject class for your ship. We will make use of the Update function in order to update the ship's position every frame.+You can follow [[en:tutorials:​creating_your_own_scroll_project_using_init|this tutorial to help you set up a new orx/Scroll project]]. Once set up, create a ScrollObject class for your ship. We will make use of the Update function in order to update the ship's position every frame.
  
 ===== Assets ===== ===== Assets =====
Line 114: Line 114:
  
  SetPosition(shipPosition,​ orxTRUE);  SetPosition(shipPosition,​ orxTRUE);
- SetRotation(1.57, orxTRUE); //face right+ SetRotation(orxMATH_KF_PI_BY_2, orxTRUE); //face right
   
  curveIndex += 0.001; //define curveIndex orxFLOAT in the header  curveIndex += 0.001; //define curveIndex orxFLOAT in the header
en/tutorials/scrollobject_along_a_curve.1516114959.txt.gz · Last modified: 2018/01/16 19:02 (2 years ago) (external edit)