- Joined
- Jan 13, 2015
- Messages
- 155
- Reaction score
- 7
- First Language
- French
- Primarily Uses
- RMVXA
Hello !
I have a "Gauge" picture that I wish to force to get zoom_x 100 if >100.
I wrote it my self (woooooo yeah !) and it looks to work.
class Game_Picture
#--------------------------------------------------------------------------
# * Show Picture
#--------------------------------------------------------------------------
def show (name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
if @name = "Gauge"
if zoom_x > 100
@zoom_x = 100
else
@name = name
@origin = origin
@x = x.to_f
@y = y.to_f
@zoom_x = zoom_x.to_f
@zoom_y = zoom_y.to_f
@opacity = opacity.to_f
@blend_type = blend_type
init_target
init_tone
init_rotate
end #if
else
# Nothing
end #if
end #Def
end #Class
I just need the expertise from someone to tell me if that can mess somewhere
in the project.
Don't laugh at me ... It took about 2h to make it work without "errors"
Thank in advance !
I have a "Gauge" picture that I wish to force to get zoom_x 100 if >100.
I wrote it my self (woooooo yeah !) and it looks to work.
class Game_Picture
#--------------------------------------------------------------------------
# * Show Picture
#--------------------------------------------------------------------------
def show (name, origin, x, y, zoom_x, zoom_y, opacity, blend_type)
if @name = "Gauge"
if zoom_x > 100
@zoom_x = 100
else
@name = name
@origin = origin
@x = x.to_f
@y = y.to_f
@zoom_x = zoom_x.to_f
@zoom_y = zoom_y.to_f
@opacity = opacity.to_f
@blend_type = blend_type
init_target
init_tone
init_rotate
end #if
else
# Nothing
end #if
end #Def
end #Class
I just need the expertise from someone to tell me if that can mess somewhere
in the project.
Don't laugh at me ... It took about 2h to make it work without "errors"
Thank in advance !
Last edited by a moderator:


