Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Tinting the screen but not the player, is this possible with events or do i need a script?
lilcooldude69
post Oct 7 2010, 12:43 AM
Post #1


The pro-est eventer u know ;D
Group Icon

Group: Revolutionary
Posts: 297
Type: Event Designer
RM Skill: Masterful




yeh i wanna tint the screen but i dont want the player to be tinted is that possible at all? if it is with events i missed somthing and if it is with scripts can one of you guys script me somthing like that biggrin.gif?


__________________________

My Userbars


Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB."
Scientist B: Too bad ejaculate has terrible packet loss
Scientist C:but the transfer does have a lot of redundancy

Go to the top of the page
 
+Quote Post
   
Kread-EX
post Oct 7 2010, 01:14 AM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




Go to the Spriteset_Map script section. And find this:
CODE
  def create_characters
    @character_sprites = []
    for i in $game_map.events.keys.sort
      sprite = Sprite_Character.new(@viewport1, $game_map.events[i])
      @character_sprites.push(sprite)
    end
    for vehicle in $game_map.vehicles
      sprite = Sprite_Character.new(@viewport1, vehicle)
      @character_sprites.push(sprite)
    end
    @character_sprites.push(Sprite_Character.new(@viewport1, $game_player))
  end

Replace all the @viewport1 occurences by @viewport2 or @viewport3. This method will not tint events.
If you want events to be tinted but not the player, change only the third one.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
lilcooldude69
post Oct 7 2010, 02:42 AM
Post #3


The pro-est eventer u know ;D
Group Icon

Group: Revolutionary
Posts: 297
Type: Event Designer
RM Skill: Masterful




ok cool is there a way i can do call script so i can activate it only when needed? like $game_player = @viewpoint2 or sumthing? if not then i'll just stick with what i have


__________________________

My Userbars


Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB."
Scientist B: Too bad ejaculate has terrible packet loss
Scientist C:but the transfer does have a lot of redundancy

Go to the top of the page
 
+Quote Post
   
Kread-EX
post Oct 7 2010, 02:52 AM
Post #4


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




No, because the sprites are loaded with the map, so the viewport can only be set upon entering a map. You can use a switch to control it, like this:
CODE
  def create_characters
    @character_sprites = []
    for i in $game_map.events.keys.sort
      sprite = Sprite_Character.new(@viewport1, $game_map.events[i])
      @character_sprites.push(sprite)
    end
    for vehicle in $game_map.vehicles
      sprite = Sprite_Character.new(@viewport1, vehicle)
      @character_sprites.push(sprite)
    end
    #### The control switch is set here
    # Replace 56 by the real switch ID
    vp = $game_switches[56] ? @viewport2 : @viewport1
    @character_sprites.push(Sprite_Character.new(vp, $game_player))
  end

In this example, the player will be excluded only if the 56th switch is ON. But then again, the effect only takes place if you transfer to another map.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
lilcooldude69
post Oct 7 2010, 03:21 AM
Post #5


The pro-est eventer u know ;D
Group Icon

Group: Revolutionary
Posts: 297
Type: Event Designer
RM Skill: Masterful




okay i'll just stick with the last one lol thanx for the info Tho biggrin.gif ur a big help kread


__________________________

My Userbars


Rated pg-13 part of signiture
Scientist A: "A single sperm has 37.5MB of DNA information in it. That means a normal ejaculation represents a data transfer of 1,587.5TB."
Scientist B: Too bad ejaculate has terrible packet loss
Scientist C:but the transfer does have a lot of redundancy

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 05:57 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker