hi, well...i am learning scripting, but i have a little trouble:
i made the team members follow my character, but if i changed my characters opacity, they will still be 255.
in the script that makes them follow the following:
---------------------
class Game_Party_Actor < Game_Character
def initialize
super()
@through = true
end
def setup(actor)
# ã‚ャラクターã®ãƒ•ã‚¡ã‚¤ãƒ«åã¨è‰²ç›¸ã‚’è¨å®š
if actor != nil
@character_name = actor.character_name
@character_hue = actor.character_hue
else
@character_name = ""
@character_hue = 0
end
# ä¸é€æ˜Žåº¦ã¨åˆæˆæ–¹æ³•ã‚’åˆæœŸåŒ–
@opacity = 255
end
def screen_z(height = 0)
if $game_player.x == @x and $game_player.y == @y
return $game_player.screen_z(height) - 1
end
super(height)
end
----------------------------
the question is how can i make their opacities as my main character??
like my character's opacity is 15, how do i make them 15 after that 255?
thanks for helping!':|
i made the team members follow my character, but if i changed my characters opacity, they will still be 255.
in the script that makes them follow the following:
---------------------
class Game_Party_Actor < Game_Character
def initialize
super()
@through = true
end
def setup(actor)
# ã‚ャラクターã®ãƒ•ã‚¡ã‚¤ãƒ«åã¨è‰²ç›¸ã‚’è¨å®š
if actor != nil
@character_name = actor.character_name
@character_hue = actor.character_hue
else
@character_name = ""
@character_hue = 0
end
# ä¸é€æ˜Žåº¦ã¨åˆæˆæ–¹æ³•ã‚’åˆæœŸåŒ–
@opacity = 255
end
def screen_z(height = 0)
if $game_player.x == @x and $game_player.y == @y
return $game_player.screen_z(height) - 1
end
super(height)
end
----------------------------
the question is how can i make their opacities as my main character??
like my character's opacity is 15, how do i make them 15 after that 255?
thanks for helping!':|