❤ 0 Auteur : Moghunter
Logiciel : RPG Maker XP
Nombre de scripts : 1
Source : https://mogplugins.wordpress.com/rpg-maker-vx/
Description
Ajoute un fond défilant et un effet de brouillard à l'écran titre.
Conditions d'utilisation
- Vous devez créditer l'auteur.
- Vous pouvez utiliser ce script dans vos projets commerciaux.
- Vous pouvez utiliser ce script dans un jeu pour adulte.
- Vous pouvez traduire ce script.
- Vous pouvez éditer ce script pour vos besoins.
- Vous pouvez distribuer le script dans sa version originale/modifiée, tant que le nom de l'auteur et l'adresse du site sont conservés
- Vous ne pouvez pas vendre ce script/demander des donations.
Installation
A insérer au-dessus de Main.
Utilisation
Vous devez posséder 2 images:
- L'image du dessus, qui ne bouge pas, appelée "Title"
- L'image du fond, qui se déplace, appelée "Title_Pano01"
Vous remarquerez dans votre écran titre qu'il y a un brouillard qui est affiché, aussi. Pour le modifier, allez à la ligne 40, vous verrez :
1
| @mnpan2.bitmap = RPG::Cache.fog("001-Fog01",0) |
Remplacez -->""001-Fog01""par le nom du brouillard que vous voulez.
Si vous ne voulez pas de ce brouillard, allez a la ligne 42 :
Remplacez "120" par "0", ce qui rendra le brouillard totalement transparent, et donc invisible.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
| #_______________________________________________________________________________
# MOG_Scene Title Sora Edition
#_______________________________________________________________________________
# By Moghunter
# http://www.atelier-rgss.com
# https://mogplugins.wordpress.com
#_______________________________________________________________________________
class Scene_Title
def main
if $BTEST
battle_test
return
end
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$game_system = Game_System.new
s1 = "Nouvelle partie"
s2 = "Continuer"
s3 = "Quitter"
@command_window = Window_Command.new(192, [s1, s2, s3])
@command_window.back_opacity = 160
@command_window.x = -150
@command_window.y = 350
@command_window.opacity = 255
@continue_enabled = false
@mnpan = Plane.new
@mnpan.bitmap = RPG::Cache.title("Titre_1")
@mnpan.z = 1
@mnpan2 = Plane.new
@mnpan2.bitmap = RPG::Cache.fog("001-Fog01",0)
@mnpan2.opacity = 120
@mnpan2.blend_type = 1
@mnpan2.z = 3
@mnlay = Sprite.new
@mnlay.bitmap = RPG::Cache.title("Title")
@mnlay.z = 10
@mnlay.zoom_x = 6#3
@mnlay.opacity = 0
for i in 0..3
if FileTest.exist?("Save#{i+1}.rxdata")
@continue_enabled = true
end
end
if @continue_enabled
@command_window.index = 1
else
@command_window.disable_item(1)
end
$game_system.bgm_play($data_system.title_bgm)
Audio.me_stop
Audio.bgs_stop
Graphics.transition(30, "Graphics/Transitions/004-Blind04")
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
for i in 1..60
@mnpan.zoom_x += 0.01
@mnpan.zoom_y += 0.01
@mnpan.ox += 10
@mnpan.oy += 5
@mnpan2.ox -= 1
@mnpan2.oy += 1
@mnlay.zoom_x += 0.1
@mnlay.opacity -= 10
@command_window.x -= 10
Graphics.update
end
for i in 1..60
@mnpan.zoom_x -= 0.01
@mnpan.zoom_y -= 0.01
@mnpan.ox -= 20
@mnpan.oy -= 10
@mnpan2.opacity += 5
@mnpan2.ox += 5
@mnpan2.oy += 5
@mnpan2.zoom_x += 0.01
@mnpan2.zoom_y += 0.01
@mnlay.opacity -= 10
Graphics.update
end
Graphics.freeze
@command_window.dispose
@mnlay.dispose
@mnpan.dispose
@mnpan2.dispose
end
def update
if @mnlay.zoom_x > 1
@mnlay.zoom_x -= 0.1
@mnlay.opacity += 5
elsif @mnlay.zoom_x <= 1
@mnlay.zoom_x = 1
@mnlay.opacity = 255
end
@mnpan.ox += 1
@mnpan2.ox -= 1
@mnpan2.oy += 1
@command_window.update
if @command_window.x < 50
@command_window.x += 15
elsif @command_window.x >= 50
@command_window.x = 50
end
if Input.trigger?(Input::C)
case @command_window.index
when 0
command_new_game
when 1
command_continue
when 2
command_shutdown
end
end
end
def command_new_game
$game_system.se_play($data_system.decision_se)
Audio.bgm_stop
Graphics.frame_count = 0
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
$game_party.setup_starting_members
$game_map.setup($data_system.start_map_id)
$game_player.moveto($data_system.start_x, $data_system.start_y)
$game_player.refresh
$game_map.autoplay
$game_map.update
$scene = Scene_Map.new
end
def command_continue
unless @continue_enabled
$game_system.se_play($data_system.buzzer_se)
return
end
$game_system.se_play($data_system.decision_se)
$scene = Scene_Load.new
end
def command_shutdown
$game_system.se_play($data_system.decision_se)
Audio.bgm_fade(800)
Audio.bgs_fade(800)
Audio.me_fade(800)
$scene = nil
end
def battle_test
$data_actors = load_data("Data/BT_Actors.rxdata")
$data_classes = load_data("Data/BT_Classes.rxdata")
$data_skills = load_data("Data/BT_Skills.rxdata")
$data_items = load_data("Data/BT_Items.rxdata")
$data_weapons = load_data("Data/BT_Weapons.rxdata")
$data_armors = load_data("Data/BT_Armors.rxdata")
$data_enemies = load_data("Data/BT_Enemies.rxdata")
$data_troops = load_data("Data/BT_Troops.rxdata")
$data_states = load_data("Data/BT_States.rxdata")
$data_animations = load_data("Data/BT_Animations.rxdata")
$data_tilesets = load_data("Data/BT_Tilesets.rxdata")
$data_common_events = load_data("Data/BT_CommonEvents.rxdata")
$data_system = load_data("Data/BT_System.rxdata")
Graphics.frame_count = 0
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
$game_party.setup_battle_test_members
$game_temp.battle_troop_id = $data_system.test_troop_id
$game_temp.battle_can_escape = true
$game_map.battleback_name = $data_system.battleback_name
$game_system.se_play($data_system.battle_start_se)
$game_system.bgm_play($game_system.battle_bgm)
$scene = Scene_Battle.new
end
end |
Mis à jour le 14 juillet 2023.
|