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
| #Commandes des images, par Fabien
#afficher(z,name, origin, x, y,zoom_x, zoom_y, opacity, blend_type)
#deplacer(z,duration, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
#rotation(z,speed)
#teinter(z,rouge,bleu,vert,saturation,duration)
#supprimer(z)
def afficher(z,name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
$game_screen.pictures[z].show(name, origin,x, y,zoom_x, zoom_y, opacity, blend_type)
end
#--------------------------------------------------------------------------
def deplacer(z,duration, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
$game_screen.pictures[z].move(duration*2, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
return true
end
#--------------------------------------------------------------------------
def rotation(z,speed)
$game_screen.pictures[z].rotate(speed)
return true
end
#--------------------------------------------------------------------------
def teinter(z,rouge,bleu,vert,saturation,duration)
@teinte=Tone.new(rouge,bleu,vert,saturation)
$game_screen.pictures[z].start_tone_change(@teinte, duration)
return true
end
#--------------------------------------------------------------------------
def supprimer(z)
$game_screen.pictures[z].erase
return true
end |