class Window_Mine < Window_Base def initialize super(0,0,320, 240) actor = $game_actors(1) x, y = 5, 50 draw_actor_face(actor, x, y) end
end
class Scene_Mine < Scene_Base def start @my_window = Window.Mine.new end def update @my_window.update if Input.trigger?(Input::C) $scene = Scene_Map.new end end def terminate @my_window.dispose end
@MrHaRehari You probably misspelt attr_accessor or you put the : right next to it. Otherwise, it could be that you put a second class name above. its hard to say without your exactly script text. But those would be my first guesses.
class Window_Mine < Window_Base def initialize super (0,0,320,240) actor = $game_actors[1] x, y = 5, 50 draw_actor_face(actor, x, y) end
end
class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Input.trigger?(Input::C) sound.play_decision $scene = Scene_Map.new end
It's telling me I have 'wrong number of arguments (0 for 4)' on line 11
@diamondandplatinum3 Looks like you have an extra space between super and the ()'s. If you space, then it assumes you are going to pass each argument that way.
@gubid Sorry, last post was a mess >_<. So I get NameError on line 16. unitialized constant Scene_Mine::Imput. The script:
class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Imput.trigger?(Imput::C) $scene = Scene_Map.new end end def dispose @my_window.dispose end
@gubid Thank you! Now I can get into the game. But as soon as I talk to the NPC, I get an error: Script 'Tutorial 2' line 16: NameError occurred. uninitialized constant Scene_Mine::Imput. class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Imput.trigger?(Imput::C) $scene = Scene_Map.new end end def dispose @my_window.dispose end end
I have a problem. I get an error: Script 'Tutorial 2' line 4: SyntaxError ocurried.
my script:
class Window_Mine < Window_Base def initialize super(0, 0, 320, 240) actor = $game_actors(1) x, y = 5, 50 draw_actor_face(actor, x, y) end
end
class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Imput.trigger?(Imput::C) $scene = Scene_Map.new end end def dispose @my_window.dispose end
Very comprehensive and easy to understand. You mentioned the "snapshot_for_background" thing in Scene_Base. How would you use that in your example? I can't seem to get the game to stay appearing in the background instead of the black screen
@DaminLake do remember that 'Input::C' is not actually the C button, but rather the space or enter. I dont see anything wrong with your code otherwise.
Comment removed
Osaed1 20 hours ago
thanks, works, sorry for this.. im just beginer
MrHaRehari 4 days ago
it works. but when i want to talk with the event :
Script 'Tutorial' line 11: NoMethodError occured undefined method 'Mine' for Window:Class
ftw is 'method'
MrHaRehari 4 days ago
@MrHaRehari Looks like you also have a period instead of an underscore here:
Window.Mine.new on the line where it died. I didnt plug it it, I just sight read what was wrong.
gubid 4 days ago
class Window_Mine < Window_Base def initialize super(0,0,320, 240) actor = $game_actors(1) x, y = 5, 50 draw_actor_face(actor, x, y) end
end
class Scene_Mine < Scene_Base def start @my_window = Window.Mine.new end def update @my_window.update if Input.trigger?(Input::C) $scene = Scene_Map.new end end def terminate @my_window.dispose end
end
can't see problem
MrHaRehari 5 days ago
@MrHaRehari This line: actor = $game_actors(1)
Should have square brackets rather than regular paren.
$game_actors[1]
gubid 5 days ago
Error: Script 'Tutorial' line 4: syntax error occurred ftw??
MrHaRehari 6 days ago
@MrHaRehari You probably misspelt attr_accessor or you put the : right next to it. Otherwise, it could be that you put a second class name above. its hard to say without your exactly script text. But those would be my first guesses.
gubid 5 days ago
This has been flagged as spam show
class Window_Mine < Window_Base def intialize super(0,0,320, 240) actor = $game_actors[1] x, y = 5, 50 draw_actor_face(actor, x, y) end
end
class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Input.trigger?(Input::C) $scene = Scene_Map.new
end end def terminate @my_window.dispose end
end
Getting the error: 'wrong number of arguments (0 for 4)' on line 11'
jessebiruu 2 months ago
godlike
Thingsandstuffmaybe 2 months ago
class Window_Mine < Window_Base def initialize super (0,0,320,240) actor = $game_actors[1] x, y = 5, 50 draw_actor_face(actor, x, y) end
end
class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Input.trigger?(Input::C) sound.play_decision $scene = Scene_Map.new end
It's telling me I have 'wrong number of arguments (0 for 4)' on line 11
which is '@my_window = Window_Mine.new'.
diamondandplatinum3 3 months ago
@diamondandplatinum3 Looks like you have an extra space between super and the ()'s. If you space, then it assumes you are going to pass each argument that way.
gubid 3 months ago
@gubid Ugh, im such an idiot. Thank you anyways.
Yandrox14 6 months ago
@Yandrox14 As I have said, spelling errors are the most common errors you will encounter. I wish you the best of luck with your project.
gubid 6 months ago
@gubid
+1 to that. I was struggling with an error and all I was missing was the word 'end' that I had forgotten to write in twice.
tangonoose 3 months ago
@gubid Sorry, last post was a mess >_<. So I get NameError on line 16. unitialized constant Scene_Mine::Imput. The script:
class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Imput.trigger?(Imput::C) $scene = Scene_Map.new end end def dispose @my_window.dispose end
end
Yandrox14 6 months ago
@Yandrox14 imput is not the module, its Input with an N. That would be why you get the error.
gubid 6 months ago
Yandrox14 6 months ago
I have a problem. I get an error: Script 'Tutorial 2' line 4: SyntaxError ocurried.
my script:
class Window_Mine < Window_Base def initialize super(0, 0, 320, 240) actor = $game_actors(1) x, y = 5, 50 draw_actor_face(actor, x, y) end
end
class Scene_Mine < Scene_Base def start @my_window = Window_Mine.new end def update @my_window.update if Imput.trigger?(Imput::C) $scene = Scene_Map.new end end def dispose @my_window.dispose end
end
Yandrox14 6 months ago
@Yandrox14 Sorry! its probably just the bad resolution, but that reference to $game_actors should be [ ] rather than ( ) or { }.
gubid 6 months ago
Very comprehensive and easy to understand. You mentioned the "snapshot_for_background" thing in Scene_Base. How would you use that in your example? I can't seem to get the game to stay appearing in the background instead of the black screen
JonFawkes 6 months ago
@DaminLake
you have @ symbol before scene = Scene_Map.new
you need $ symbol
ripwolfram 8 months ago
Holy crap, I'm actually understanding this now.
Chao5bringer 8 months ago
@Chao5bringer Awesome! Glad I could help. Now go help others!
gubid 8 months ago 2
@DaminLake do remember that 'Input::C' is not actually the C button, but rather the space or enter. I dont see anything wrong with your code otherwise.
gubid 8 months ago
amazing tutorials. thank you very much.
Regless 8 months ago
Great Tutorial! Really helped.. Gonna watch all of your tutorials :D
Blacuchops 9 months ago