This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:guides:beginners:timeline_tracks [2018/02/14 04:47 (8 years ago)] – ↷ Links adapted because of a move operation iarwain | en:guides:beginners:timeline_tracks [2025/09/30 17:26 (5 weeks ago)] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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: | ||
| - | < | + | < |
| [Scene] | [Scene] | ||
| ChildList = PlatformObject # MiddlePlatformObject # | ChildList = PlatformObject # MiddlePlatformObject # | ||
| Line 23: | Line 23: | ||
| </ | </ | ||
| - | 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 | + | Attach |
| - | < | + | < |
| - | [MonsterObject] | + | |
| - | Graphic | + | |
| - | AnimationSet = MonsterAnimationSet | + | |
| - | Position | + | |
| - | Scale = 2.0 | + | |
| - | Body = MonsterBody | + | |
| - | </ | + | |
| - | + | ||
| - | Finally, to actually use the track which will create monsters, add it to the TrackList property in the Scene section: | + | |
| - | + | ||
| - | < | + | |
| [Scene] | [Scene] | ||
| ChildList = PlatformObject # MiddlePlatformObject # | ChildList = PlatformObject # MiddlePlatformObject # | ||
| Line 44: | Line 33: | ||
| TrackList = MonsterMakerTrack | TrackList = MonsterMakerTrack | ||
| </ | </ | ||
| + | |||
| + | So that the monster objects start at a random position each time. Change the monster object to have a range of starting x positions: | ||
| + | |||
| + | < | ||
| + | [MonsterObject] | ||
| + | Graphic | ||
| + | AnimationSet = MonsterAnimationSet | ||
| + | Position | ||
| + | Scale = 2.0 | ||
| + | Body = MonsterBody | ||
| + | </ | ||
| + | |||
| 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: | ||
| - | < | + | < |
| [MonsterObject] | [MonsterObject] | ||
| Graphic | Graphic | ||
| AnimationSet = MonsterAnimationSet | AnimationSet = MonsterAnimationSet | ||
| - | Position | + | Position |
| Speed = (-20, 0, 0) ~ (20, 0, 0) | Speed = (-20, 0, 0) ~ (20, 0, 0) | ||
| Scale = 2.0 | Scale = 2.0 | ||
| Line 82: | Line 83: | ||
| Finally, a touch of '' | Finally, a touch of '' | ||
| - | That should work a little better. | + | That should work a little better. |
| + | |||
| + | < | ||
| + | [MonsterBody] | ||
| + | Dynamic | ||
| + | PartList | ||
| + | AngularDamping | ||
| + | LinearDamping | ||
| + | FixedRotation | ||
| + | </ | ||
| ---- | ---- | ||