Anisoptera Games
https://www.anisopteragames.com/forum/

Laser fail.
https://www.anisopteragames.com/forum/viewtopic.php?f=9&t=1930
Page 1 of 1

Author:  StormLord [ Sun Oct 04, 2015 6:44 pm ]
Post subject:  Laser fail.

so I just started making a mod. I wanted to add a turret mounted laser. however when I try to test it it wont render. I mean it does damage and everything but there isn't a beam and there are no particles.

blocks.lua segment:
--Lasers
{19, bindingId=5, name="Dagger", features=TURRET|LASER|AUTOFIRE, group=20,
points=16, durability=2.000, blurb="Short, mid damage defensive blade", density=0.150,
fillColor=0x461863, fillColor1=0x3d2576, lineColor=0xac41d8, thrusterColor=0x706893, thrusterColor1=0x4d4d4d,
laser={power=200.000, width=10.000, damage=250.000, color=0x461863, range=150.000}},

Could someone please tell me what I'm doing wrong?

Author:  sumplkrum [ Mon Oct 05, 2015 3:19 pm ]
Post subject:  Re: Laser fail.

I don't see anything wrong. Maybe the color's too dark? You could try testing with something lighter.

Author:  StormLord [ Mon Oct 05, 2015 5:36 pm ]
Post subject:  Re: Laser fail.

sumplkrum wrote:
I don't see anything wrong. Maybe the color's too dark? You could try testing with something lighter.


I just tried that, I changed the color to FF0000(bright red) with no difference.

Author:  Cornebre [ Mon Oct 05, 2015 10:08 pm ]
Post subject:  Re: Laser fail.

You miss the alpha channel ^^'
Laser use a AARRGGBB format, with the first two being the "how transparent" the laser is

Author:  sumplkrum [ Mon Oct 05, 2015 10:29 pm ]
Post subject:  Re: Laser fail.

Ooo, look at that. I never realized there were extra numbers there. :D

Author:  StormLord [ Tue Oct 06, 2015 4:07 pm ]
Post subject:  Re: Laser fail.

Cornebre wrote:
You miss the alpha channel ^^'
Laser use a AARRGGBB format, with the first two being the "how transparent" the laser is


So I just need to add an extra two numbers/letters? Wow that is much more simple than I thought it would be.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/