Modding Help How to change the layer of projectiles?

Discussion in 'Starbound Modding' started by Moon Star, Dec 30, 2016.

  1. Moon Star

    Moon Star Cosmic Narwhal

    Link for an idea of what I'm trying to explain.

    Basically, what I'm trying to do is to get one projectile to be on the layer behind the first projectile. My problem is that the second, newly spawned projectile appears in front of the old one. What I want is for the second projectile (And they are both projectiles) to appear behind the first one. All help is appreciated!
     
  2. Dekadrachm

    Dekadrachm Heliosphere

    Looks pretty neat, have you tried changing the timing of the first projectile? A.K.A spawning the second one a fraction before the first and then changing the slide animation to wait before rising from the other? Just a thought, can't really give you too much else without seeing your code.
     
  3. bk3k

    bk3k Oxygen Tank

    for one projectile type
    "renderLayer" : "Projectile+1",
    and for the other one
    "renderLayer" : "Projectile",

    This works a lot like a zLevel, more like layerLevel + z modifier. You aren't even restricted to the "Projectile" layer. Any layer is valid.
     
    Dekadrachm likes this.

Share This Page