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
en:guides:beginners:fx [2018/06/28 08:26 (7 years ago)] – external edit 127.0.0.1en:guides:beginners:fx [2024/11/19 02:08 (5 months ago)] (current) – Highlights sausage
Line 26: Line 26:
 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
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 92: Line 94:
 One more tweak, a minor detail: 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  = (290, -260, 0) Position  = (290, -260, 0)
 FXList    = StarFX FXList    = StarFX
 +Pivot     = center
 Smoothing = true Smoothing = true
 </code> </code>
Line 122: Line 125:
 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
en/guides/beginners/fx.1530199574.txt.gz · Last modified: 2018/06/28 08:26 (7 years ago) by 127.0.0.1