Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Suggestions & Requests
»
Event - Brick Flash
« previous
next »
Print
Pages: [
1
]
Author
Topic: Event - Brick Flash (Read 700 times)
alex dude
December 27, 2013, 04:17:23 AM
Brick Flash
On Activate > Self > BrickFlash
Makes a brick quickly change it's color to white (or the brightest possible color), and then reverts back to the original after 400ms (the delay could be specified by the user)
Ad Bot
Advertisement
SWAT One
December 27, 2013, 04:49:50 AM
Yes please.
Teneksi
December 27, 2013, 05:24:51 AM
Quote from: alex dude on December 27, 2013, 04:17:23 AM
to white (or the brightest possible color)
or, a specified color. White if they want it, similar color, or some other color.
Sounds like a nice shortcut for a common and tedious pair of events
alex dude
December 27, 2013, 05:52:46 AM
yeah that's also a great idea, a specified color would be fantastic.
Port
December 27, 2013, 05:54:23 AM
Quote from: Eksi on December 27, 2013, 05:24:51 AM
or, a specified color.
registerOutputEvent(fxDTSBrick, flashBrick, "paintColor 0" TAB "int 0 30000 400");
function fxDTSBrick::flashBrick(%this, %color, %time)
{
if (isEventPending(%this.flashBrickSchedule))
{
cancel(%this.flashBrickSchedule);
}
else
{
%this.flashBrickRevert = %this.getColorID();
}
%this.setColor(%color);
%this.flashBrickSchedule = %this.schedule(%time, setColor, %this.flashBrickRevert);
}
Demian
December 27, 2013, 06:03:14 AM
This can already be done with the setColor event (+setColorFX Glow for a fancier effect) but I suppose you want to do it with just one line of events?
otto-san
December 27, 2013, 11:05:27 AM
i just want a short way of doing a quick change to Glow personally
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Suggestions & Requests
»
Event - Brick Flash