generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Properties of a particle emitter?

Previous Thread :: Next Thread 
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
10 May 2015 07:51 PM
Like, in a script?

The properties I'm trying to define are the Speed, Lifetime, and Color

http://wiki.roblox.com/index.php?title=API:Class/ParticleEmitter

doesn't explain it.

How do I define it? Can someone give me an example?

Thanks in advance!

-Theninjaguy987
Report Abuse
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
10 May 2015 07:52 PM
NumberRange.new() for Speed and Lifetime
ColorSequence.new() for colour.
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
10 May 2015 08:04 PM
bool
http://wiki.roblox.com/index.php?title=API:Type/bool
-Enabled

ColorSequence
http://wiki.roblox.com/index.php?title=API:ColorSequence
-Color

Content
http://wiki.roblox.com/index.php?title=API:Content
-Texture

float
http://wiki.roblox.com/index.php?title=API:Type/float
-LightEmission
-Rate
-VelocitySpread
-ZOffset

NumberRange
http://wiki.roblox.com/index.php?title=API:NumberRange
-Lifetime
-RotSpeed
-Rotation
-Speed

NumberSequence
http://wiki.roblox.com/index.php?title=API:NumberSequence
-Size
-Transparency

Vector3
http://wiki.roblox.com/index.php?title=API:Vector3
-Acceleration
Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
10 May 2015 08:21 PM
Can someone give me an example?

Like, what goes in between the ()'s. I've tried everything I think might work, so please example?

And amanda, I didn't ask to be redirected to the wiki again. I already stated it didn't help... =/
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
10 May 2015 08:30 PM
It was a bit of an inconvenience for me sorting those out and linking the appropriate wiki pages. You stated the actual API didn't help, so I assumed you were blind and didn't see you could click to see what arguments each property accepted.

It is another problem if you don't have the ability to read. For those like

ColorSequence.new()

and such, it tells you what to put in the parentheses. In that case, either one or two Color3 values.

To make a new Color3 value, you do Color3.new(#, #, #)

Color3's are composed of numbers between 0 and 1, so if you want to do RGB, you need to divide each number by 255

Color3.new(#/255, #/255, #/255)

So a valid way to set the Color of a ColorSequence is this:

ParticleEmitter.Color = ColorSequence.new(Color3.new(23/255, 1/255, 160/255), Color3.new(255/255, 82/255, 160/255))

Or if you think that is messy, you could always make variables.

local startColor = Color3.new(23/255, 1/255, 160/255)
local endColor = Color3.new(255/255, 82/255, 160/255)

ParticleEmitter.Color = ColorSequence.new(startColor, endColor)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image