It looks like you're new here. If you want to get involved, click one of these buttons!
[FastStarsObjectGroup]
TrackList = FastStarsTrack
[MediumStarsObjectGroup]
TrackList = MediumStarsTrack
[SlowStarsObjectGroup]
TrackList = SlowStarsTrack
[FastStarObject]
Graphic = FastStarGraphic
Position = (0, 1, 0) ~ (0, 799, 0)
Speed = (200, 0, 0)
TrackList = FastStarTrack
[[email protected]]
Graphic = MediumStarGraphic
Speed = (150, 0, 0)
TrackList = MediumStarTrack
[[email protected]]
Graphic = SlowStarGraphic
Speed = (100, 0, 0)
TrackList = SlowStarTrack
[FastStarGraphic]
Texture = pixel
Color = (200, 200, 200) ~ (255, 255, 255)
[MediumStarGraphic]
Texture = pixel
Color = (100, 100, 100) ~ (200, 200, 200)
[SlowStarGraphic]
Texture = pixel
Color = (50, 50, 50) ~ (100, 100, 100)
[FastStarsTrack]
.05 = Object.Create FastStarObject
Loop = true
[MediumStarsTrack]
.03 = Object.Create MediumStarObject
Loop = true
[SlowStarsTrack]
.01 = Object.Create SlowStarObject
Loop = true
[FastStarTrack]
4 = Object.SetLifeTime ^ 0
[MediumStarTrack]
6 = Object.SetLifeTime ^ 0
[SlowStarTrack]
8 = Object.SetLifeTime ^ 0
orxObject_CreateFromConfig("FastStarsObjectGroup");
orxObject_CreateFromConfig("MediumStarsObjectGroup");
orxObject_CreateFromConfig("SlowStarsObjectGroup");
Comments
- I wouldn't use a track to set the lifetime of the objects, I'd simply use the LifeTime property (it is also more efficient, but I don't know by how much)
- I'd group all the 3 planes into a same object hierarchy:
and
But quite right.... this job is much better done by a spawner.