User Tools

Site Tools


en:guides:beginners:fx

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:guides:beginners:fx [2018/02/13 20:47 (7 years ago)] – ↷ Links adapted because of a move operation iarwainen:guides:beginners:fx [2024/11/19 02:08 (5 months ago)] (current) – Highlights sausage
Line 11: Line 11:
  
  
-Right and click this image and save it as "star.png" in the data/object folder.+Right and click this image and save it as "star.png" in the ''data/texture'' folder in our project.
  
 Create a object section for this star and position it at the top right hand platform: Create a object section for this star and position it at the top right hand platform:
Line 21: Line 21:
 [StarObject] [StarObject]
 Graphic  = StarGraphic Graphic  = StarGraphic
-Position = (69040, 0)+Position = (290-260, 0)
 </code> </code>
  
 Add the star to the Scene section's child list so that it is created when the platforms are: Add the star to the Scene section's child list so that it is created when the platforms are:
  
-<code=ini>+<code=ini [highlight_lines_extra="4"]>
 [Scene] [Scene]
 ChildList = PlatformObject # MiddlePlatformObject # ChildList = PlatformObject # MiddlePlatformObject #
Line 32: Line 32:
 StarObject StarObject
 </code> </code>
 +
 +(Don't forget the ''#'' on the line above ''StarObject'').
  
 Run the game and you will have a star in the top right hand corner: Run the game and you will have a star in the top right hand corner:
Line 71: Line 73:
 Add the FX to the StarObject: Add the FX to the StarObject:
  
-<code=ini>+<code=ini [highlight_lines_extra="4"]>
 [StarObject] [StarObject]
 Graphic  = StarGraphic Graphic  = StarGraphic
-Position = (69040, 0)+Position = (290-260, 0)
 FXList   = StarFX FXList   = StarFX
 </code> </code>
Line 82: Line 84:
 The only problem is that the turning pivot for the star is a little off. Fix that on the StarGraphic: The only problem is that the turning pivot for the star is a little off. Fix that on the StarGraphic:
  
-<code=ini>+<code=ini [highlight_lines_extra="3"]>
 [StarGraphic] [StarGraphic]
 Texture = star.png Texture = star.png
Line 90: Line 92:
 Run that. And it will turn nicely. Run that. And it will turn nicely.
  
-One more tweak: As the sprite is turning, there are some jaggies, smooth them out my applying smoothing to the StarObject:+One more tweak, a minor detail: As the sprite is turning, there are some jaggies. Smooth them out my applying ''Smoothing'' to the ''StarObject'':
  
-<code=ini>+<code=ini [highlight_lines_extra="6"]>
 [StarObject] [StarObject]
 Graphic   = StarGraphic Graphic   = StarGraphic
-Position  = (69040, 0)+Position  = (290-260, 0)
 FXList    = StarFX FXList    = StarFX
 +Pivot     = center
 Smoothing = true Smoothing = true
 </code> </code>
Line 120: Line 123:
 </code> </code>
  
-And add the body to the StarObject:+And add the body to the ''StarObject'':
  
-<code=ini>+<code=ini [highlight_lines_extra="6"]>
 [StarObject] [StarObject]
 Graphic   = StarGraphic Graphic   = StarGraphic
-Position  = (69040, 0)+Position  = (290-260, 0)
 FXList    = StarFX FXList    = StarFX
 Smoothing = true Smoothing = true
en/guides/beginners/fx.1518583677.txt.gz · Last modified: 2018/02/14 00:47 (7 years ago) (external edit)