Data Realms Fan Forums
http://forums.datarealms.com/

Changing an MOPixels Colour
http://forums.datarealms.com/viewtopic.php?f=73&t=25957
Page 1 of 1

Author:  The Chairman [ Sun Oct 23, 2011 9:43 am ]
Post subject:  Changing an MOPixels Colour

Is it possible to change the colour of an MOPixel with lua?

Author:  TheLastBanana [ Sun Oct 23, 2011 7:54 pm ]
Post subject:  Re: Changing an MOPixels Colour

Not directly, but there are ways of making it appear to change colour. If you were define a particle of every possible colour (there are only 256 possible colours, so that's a bit easier to deal with), you could delete the original particle, spawn a new one with the correct colour, and then change its Sharpness, Mass, Pos, Vel, et cetera to be the same. In theory, that would work, although it could potentially be a bit buggy.

Author:  Azukki [ Wed Oct 26, 2011 5:18 pm ]
Post subject:  Re: Changing an MOPixels Colour

Well, if you only wanted to change between a couple colors, you'd only need those colors, not every color possible.

What circumstance do you want the color change to happen under?

Author:  CaveCricket48 [ Thu Oct 27, 2011 5:59 am ]
Post subject:  Re: Changing an MOPixels Colour

You could also try having a multi-framed 1 pixel MOSRotating over the MOPixel, with each frame being a different color.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/