• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Eventing Question] How to use $game_screen.start_flash

DarrylBD99

Content Creator and Game Developer
321
Posts
3
Years
I am having some trouble using the
$game_screen.start_flash(color,duration)
for my game. I mean, I know how the duration part works, but what do I put in the color part? I tried using hex code and it didn't work, can someone maybe give an example script/code for this?
 
658
Posts
7
Years
I am having some trouble using the for my game. I mean, I know how the duration part works, but what do I put in the color part? I tried using hex code and it didn't work, can someone maybe give an example script/code for this?

You need to make a new Color Object,enter the RGB values and store it in a varible.
Eg
shade=Color.new(255,255,255)
$game_screen.start_flash(shade,8) should show a white flash for 8 frames
 

DarrylBD99

Content Creator and Game Developer
321
Posts
3
Years
You need to make a new Color Object,enter the RGB values and store it in a varible.
Eg
shade=Color.new(255,255,255)
$game_screen.start_flash(shade,8) should show a white flash for 8 frames

Thanks for helping out, can't wait to test it...
 
Back
Top