User Tools

Site Tools


en:examples:orx_scroll:scrollobjects_and_custom_classes

Differences

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

Link to this comparison view

Next revision
Previous revision
en:examples:orx_scroll:scrollobjects_and_custom_classes [2023/06/21 11:52 (2 years ago)] – created sausageen:examples:orx_scroll:scrollobjects_and_custom_classes [2025/09/30 17:26 (12 days ago)] (current) – external edit 127.0.0.1
Line 4: Line 4:
 ScrollObjects are Class Templates. They provide many functions such as ''OnCreate'', ''Update'', ''OnCollide'' etc. ScrollObjects are Class Templates. They provide many functions such as ''OnCreate'', ''Update'', ''OnCollide'' etc.
  
-If we had a scroll object class file, say: Spaceship.cpp, it has been included and properly bound, We can create an instance of our object with:+If we had a scroll object class file, say: Spaceship.cpp, and it had been included and properly bound, We could create an instance of our object with:
  
   ScrollObject *ship = CreateObject("Spaceship");   ScrollObject *ship = CreateObject("Spaceship");
  
-This much is all pretty standard. But when you extend the Spaceship class to support extra methods, using ScrollObject as a class type will not give access to new methods.+This much is all pretty standard. But when you extend the Spaceship class to support extra methods, using ScrollObject as a class type will not give access to the new methods.
  
-In order to create an instance of Spaceship, which gives access to all your new methods, you need to use something like:+In order to create an instance of Spaceship, which gives access to all your new methods, you need to use:
  
   Spaceship *ship = CreateObject<Spaceship>("Spaceship");   Spaceship *ship = CreateObject<Spaceship>("Spaceship");
en/examples/orx_scroll/scrollobjects_and_custom_classes.1687348364.txt.gz · Last modified: 2025/09/30 17:26 (12 days ago) (external edit)