I am working on a custom menu system for my game and I am working on the buttons. I inserted this code for a pokedex button:
@
[email protected] = 380 # to the value of the displayed graphic's verticle appearance
@button1.y = 20 # to the value of the displayed graphic's horizontal appearance
@button1.z = 100 # This sets the priority of the button over other graphics
@button1.bitmap = RPG::Cache.picture("Button1") # defines the graphic
if Mouse.mouse_in_area?(380,20,50,50)
if Mouse.click?(1)
$game_system.se_play
($data_system.decision_se)
pbFadeOutIn(99999)
( scene=PokemonPokedexScene.new
screen=PokemonPokedex.new(scene)
screen.pbStartScreen }
end
end
I keep getting an error every time I start up the game saying that line thirteen has a syntax error. Line thirteen is in bold. Can someone tell me what the error is?
I am working on a custom menu system for my game and I am working on the buttons. I inserted this code for a pokedex button:
@
[email protected] = 380 # to the value of the displayed graphic's verticle appearance
@button1.y = 20 # to the value of the displayed graphic's horizontal appearance
@button1.z = 100 # This sets the priority of the button over other graphics
@button1.bitmap = RPG::Cache.picture("Button1") # defines the graphic
if Mouse.mouse_in_area?(380,20,50,50)
if Mouse.click?(1)
$game_system.se_play
($data_system.decision_se)
pbFadeOutIn(99999)
( scene=PokemonPokedexScene.new
screen=PokemonPokedex.new(scene)
screen.pbStartScreen }
end
end
I keep getting an error every time I start up the game saying that line thirteen has a syntax error. Line thirteen is in bold. Can someone tell me what the error is?