Post new topic    
King Slime
Send private message
White flash? 
 PostThu Aug 18, 2011 6:23 pm
Send private message Reply with quote
How would I be able to cause a short flash of white on the screen? I want it so I can make a hero 'appear' out of nowhere, without just having a plain set position.
Liquid Metal King Slime
Send private message
 
 PostThu Aug 18, 2011 7:11 pm
Send private message Reply with quote
well you could just have a textbox with an all white backroung and no text or textbox appear with a script, wait (2), and then advance it.
This would make the whole screen white for less than a second. Is that what you mean? Or do you mean just in one spot on the screen, like a white circle around the hero himself.
Liquid Metal Slime
Send private message
 
 PostThu Aug 18, 2011 7:34 pm
Send private message Reply with quote
show backdrop (x) where x is a white backdrop
My website, the home of Motrya:
http://www.jshgaming.com
Liquid Metal King Slime
Send private message
 
 PostThu Aug 18, 2011 7:56 pm
Send private message Reply with quote
Code:

plotscript, white flash, ticks=1 begin
  variable(sl)
  sl := create rect
  set rect bg col(sl, 15) # color 15 is not white in every master palette
  fill parent(sl)
  wait(ticks)
  free slice(sl)
end


I really need to add a command that lets you find a color by R G B value.
Super Slime
Send private message
 
 PostFri Aug 19, 2011 1:21 am
Send private message Reply with quote
Use harm tiles. It's the classiest possible method.
Mega Tact v1.1
Super Penguin Chef
Wizard Blocks
King Slime
Send private message
 
 PostFri Aug 19, 2011 3:13 pm
Send private message Reply with quote
I went with Spoonweavers idea. And Spoon, I meant the whole screen, which is why the textbox idea is good.
Liquid Metal Slime
Send private message
 
 PostFri Aug 19, 2011 3:43 pm
Send private message Reply with quote
Master K wrote:
I went with Spoonweavers idea. And Spoon, I meant the whole screen, which is why the textbox idea is good.


I know this is nitpicking (Every method works) but it's more efficient to use this script:

Code:

plotscript, name, begin
showbackdrop(x)
wait(2)
showmap
end


than the one he's suggesting:

Code:

plotscript, name, begin
suspend box advance
show text box (x)
wait(2)
advance text box
resume box advance
end


With the former there's no reason to waste text boxes (not that you're likely to run out) or waste your time adding a backdrop to a text box. Also, you don't have to suspend anything to stop the player from interfering with the first method. The reason I say it's nitpicking is it's only a 2 tick wait, but if that interval were longer it would definitely matter more.

Of course, James's method actually looks like the best to me but I wouldn't have thought of it myself.
My website, the home of Motrya:
http://www.jshgaming.com
Slime Knight
Send private message
 
 PostSun Aug 28, 2011 11:20 am
Send private message Reply with quote
Maybe there's something particular about the white flash that you're going for that makes it so you can't just alter the palette, but that's what I've always done when I want a flash (of any color).

plotscript, flash, begin
tweakpalette(63,63,63)
updatepalette
wait(ticks)
resetpalette
updatepalette
end

A couple of lines longer, but it doesn't require a tb or a backdrop of any sort.
SPELLSHARD: THE BLACK CROWN OF HORGOTH now COMPLETE! Grab it today!
Display posts from previous: