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.

Call Script Help

In conjunction with the UMS, I use this call script:

Code:
$game_system.font_color=Color.new(255,255,255,255)

However,  when I type it in the small 'script box', it will automatically put the part in the parenthesis on a new line, causing a syntax error (I think). How can I fix this?
 

khmp

Sponsor

You can just break up the line if you want as long as the operator is on the previous line. Or some kind of delimiter establishes that the line isn't finished. Like a comma.
Code:
$game_system.font_color = 
Color.new(255,255,255,255) # Valid

$game_system.font_color = Color.new(255,
255,255,255) # Valid

$game_system.font_color = Color.new(
255,255,255,255) # Valid


$game_system.font_color 
= Color.new(255,255,255,255) # Not Valid

Good luck with it kaze950! :thumb:
 

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