User Tools

Site Tools


en:guides:beginners:objects

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
en:guides:beginners:objects [2018/06/27 08:15 (7 years ago)] – external edit 127.0.0.1en:guides:beginners:objects [2024/11/17 02:49 (7 months ago)] (current) sausage
Line 11: Line 11:
 Copy this file into your ''MyGame/data/texture'' folder. Copy this file into your ''MyGame/data/texture'' folder.
  
-Next, we need to create a graphic in the config that knows about the soldier.png image:+Next, we need to create a graphic in the ''MyGame.ini'' config that knows about the soldier.png image:
  
 <code=ini> <code=ini>
Line 29: Line 29:
 When a HeroObject is created in code, he will be placed at co-ordinates -350, 100 on the screen (from the center) and scaled up 2x in size. When a HeroObject is created in code, he will be placed at co-ordinates -350, 100 on the screen (from the center) and scaled up 2x in size.
  
-In the Init() function, replace the default object with ours:+In the Init() function, replace the ''orxObject_CreateFromConfig("Scene");'' with our:
  
 <code=cpp> <code=cpp>
en/guides/beginners/objects.1530112510.txt.gz · Last modified: 2018/06/27 08:15 (7 years ago) by 127.0.0.1