User Tools

Site Tools


en:guides:beginners:timeline_tracks

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:timeline_tracks [2018/06/28 05:46 (7 years ago)] – In line with init projects sausageen:guides:beginners:timeline_tracks [2024/12/13 03:50 (4 months ago)] (current) sausage
Line 7: Line 7:
 Before we do this, remove the single monster from the Scene. We don't need it any more: Before we do this, remove the single monster from the Scene. We don't need it any more:
  
-<code=ini>+<code=ini [highlight_lines_extra="5"]>
 [Scene] [Scene]
 ChildList = PlatformObject # MiddlePlatformObject # ChildList = PlatformObject # MiddlePlatformObject #
Line 23: Line 23:
 </code> </code>
  
-This will create monsters over and over every second for us. But the monster objects need to start at a random position each time. Change the monster object to have a range of starting x positions:+Attach the track to the Scene object so that Monster objects are created over and over:
  
-<code=ini>+<code=ini [highlight_lines_extra="6"]> 
 +[Scene] 
 +ChildList = PlatformObject # MiddlePlatformObject # 
 +TopLeftPlatformObject # TopPlatformObject # 
 +TopRightPlatformObject # 
 +StarObject 
 +TrackList = MonsterMakerTrack 
 +</code> 
 + 
 +So that the monster objects start at a random position each time. Change the monster object to have a range of starting x positions: 
 + 
 +<code=ini [highlight_lines_extra="4"]>
 [MonsterObject] [MonsterObject]
 Graphic      = MonsterGraphic Graphic      = MonsterGraphic
Line 34: Line 45:
 </code> </code>
  
-Finally, to actually use the track which will create monsters, add it to the TrackList property in the Scene section: 
- 
-<code=ini> 
-[Scene] 
-ChildList = PlatformObject # MiddlePlatformObject # 
-TopLeftPlatformObject # TopPlatformObject # 
-TopRightPlatformObject # 
-StarObject 
-TrackList = MonsterMakerTrack 
-</code> 
  
 Looking great! Monsters should be dropping in all over the place: Looking great! Monsters should be dropping in all over the place:
Line 51: Line 52:
 Some tweaks can be added to the monster and the body to improve things a little: Some tweaks can be added to the monster and the body to improve things a little:
  
-<code=ini>+<code=ini [highlight_lines_extra="5,12,13,20,21,22"]>
 [MonsterObject] [MonsterObject]
 Graphic      = MonsterGraphic Graphic      = MonsterGraphic
Line 82: Line 83:
 Finally, a touch of ''Restitution'' on the body will allow it to bounce just a touch when landing from a height. Finally, a touch of ''Restitution'' on the body will allow it to bounce just a touch when landing from a height.
  
-That should work a little better.+That should work a little better. Additionally, if you prefer the Jelly Monsters not too rotate when tipping over the edges of the platforms you can add a ''FixedRotation'' to the body: 
 + 
 +<code=ini [highlight_lines_extra="6"]> 
 +[MonsterBody] 
 +Dynamic            = true 
 +PartList           = MonsterBodyPart 
 +AngularDamping     = 50 
 +LinearDamping      = 0.2 
 +FixedRotation      = true 
 +</code> 
  
 ---- ----
en/guides/beginners/timeline_tracks.1530189986.txt.gz · Last modified: 2018/06/28 08:46 (7 years ago) (external edit)