How can I change screen tone via script call?

Status
Not open for further replies.

IsFutureBright

Lightning Bolt Action
Veteran
Joined
Dec 26, 2012
Messages
120
Reaction score
11
First Language
Portuguese
Primarily Uses
I'm trying to do this inside the Game_Player's update:

screen.start_tone_change(Tone.new(-55, -55, -55, 0), 3)wait(3) if trueBut I'm getting an error because of the "screen" variable there. I made it so based on this inside the interpreter:

def command_223 screen.start_tone_change(@params[0], @params[1]) wait(@params[1]) if @params[2] endI don't understand the "screen" variable the interpreter is calling the function from. Where is it defined?
 

djDarkX

Retro & Remastered Music Guru
Veteran
Joined
Jan 17, 2013
Messages
2,700
Reaction score
1,901
First Language
Music
Primarily Uses
RMMV
It's actually $game_screen.start_tone_change(n,n).  That's why you're getting the error.  Try that instead.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
It's $game_map.screen or $game_troop.screen, depending on where you are.
 

IsFutureBright

Lightning Bolt Action
Veteran
Joined
Dec 26, 2012
Messages
120
Reaction score
11
First Language
Portuguese
Primarily Uses
It's $game_map.screen or $game_troop.screen, depending on where you are.
You're right Tsukihime.[SIZE=12.727272033691406px] That worked brilliantly! Thanks :) [/SIZE]
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top