Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[if screen tone is -255, -255, -255, 0] condition

Sorry if I ask so many things on these forums :biggrin:
But what I need this time is a Conditional Branch Script (on the 4th page of the conditions)
that sets something in action after the screen tone is dark.

So basicly (what I tried, but didn't work obviously):
if $game_screen.@tone = Tone.new(-255, -255, -255, 0)
 

Jason

Awesome Bro

Well what you COULD do, is;

In your event where you make the screen tone go dark, you make a switch named "ScreenDarkON" or something, and turn the switch on straight after the screen tone transition.

Then just make the conditional branch under it, with "If switch ScreenDarkON is on"

And carry on with the rest of it.
 
In case anyone wants the actual code (it would be easier than turning on/off a switch every time) I believe it would be:

if $game_screen.tone == Tone.new(-255,-255,-255,0)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top