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.

Quick Question Please

I was wondering how i can make a picture stay in one place on the map instead of following the character around..

i have a light coming from above and when the screen moves, the light goes with it how can i stop this?

*edit*
i have another question also..
in the same place as above i have the screen tinted so it looks like its really dark, and i have battles in this place, when i go into a battle its so dark that i can't barely see anything, how can i change the tint in battles to be just a little brighter?
 
A couple ways I can think of...

Create a parallel event that moves the picture.
Place the parallel event at the point where you want the picture to stay.
Then have the picture follow that event (Event: Screen X, Screen Y)

Or, if it's a small enough picture, convert it to a character set, and just
assign the graphic to the event.

If you're using event based battles, just change the screen tint before the battle, and change
it back afterward.

If you're using Random Battles, we'll need to implement a bit of scriptage...

[ edit ] weird, I already did this and forgot...  (it was in my test bed)
Code:
class Scene_Battle

  alias brew_save_tone main
  alias brew_reset_tone battle_end
  
  def main
    @save_screen_tone = Tone.new($game_screen.tone.red, $game_screen.tone.green, $game_screen.tone.blue, $game_screen.tone.gray)
    $game_screen.tone.set(0,0,0,0)     # Modify this line for your desired battle tone
    brew_save_tone
  end
  def battle_end(result)
    # Set screen tone back to previous setting
    $game_screen.tone.set(@save_screen_tone.red, @save_screen_tone.green,@save_screen_tone.blue,@save_screen_tone.gray)
    brew_reset_tone(result)
  end
end

This sets the battle screen tone to (0,0,0,0), which is the default.
Change that line to modify the tone you want in battle.

Be Well
 
ok thats perfect, thanx, i just have one problem with the battle tint thing, does that change the tint for every battle in the game, or is it only for the one battle, or can i change it when i want, like a call script event or something...
cause i dont want the battle tint to be really dark throughout the whole game, i just want the battles in this area to be darker but not as dark as the tint outside the battle scene..

haha ok now im a little confuzed with the picture thing also... how do i make the picture follow the event.
 
That will change the tint for every battle. It was designed to return the tint to default (0,0,0,0).
If you can define a rule, we can modify it to suit your needs.
(for example, if the map screen tone's 'gray' value is greater than 127, set the new tone to (-51,-51,-51,63),
  otherwise, set it to (0,0,0,0))
(Or, if Map_Id == x, set it to a certain value, otherwise leave it alone)
(Or, just change the tint to 1/2 of it's current value for battle...)

Your choice


To make a picture follow an event...

In a Parallel event, add the commands:

@>Control Variables: [0001: screen X] = This event's Screen X
@>Control Variables: [0002: screen Y] = This event's Screen Y
@>Move Picture: 1, @1, Center (Variable[0001][0002]), (100%,100%),255, normal
@>Wait: 1 frame(s)

You can use the same commands to show the picture from the same event, just set page 1 to Autorun,
set the variables, show the picture, then set Self-Switch A.
On page 2, set the condition to "Self Switch A is ON", the trigger to Parallel, and use the above example
 

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