Added: 10 months ago
From: gubid
Views: 3,052
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (29)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • thanks, works, sorry for this.. im just beginer

  • 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 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.

  • 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 This line: actor = $game_actors(1)

    Should have square brackets rather than regular paren.

    $game_actors[1]

  • Error: Script 'Tutorial' line 4: syntax error occurred ftw??

  • @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.

  • godlike

  • 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 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 Ugh, im such an idiot. Thank you anyways.

  • @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

    +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.

  • @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 imput is not the module, its Input with an N. That would be why you get the error.

  • @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

    end

  • @Yandrox14 Sorry! its probably just the bad resolution, but that reference to $game_actors should be [ ] rather than ( ) or { }.

  • 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

    you have @ symbol before scene = Scene_Map.new

    you need $ symbol

  • Holy crap, I'm actually understanding this now.

  • @Chao5bringer Awesome! Glad I could help. Now go help others!

  • @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.

  • amazing tutorials. thank you very much.

  • Great Tutorial! Really helped.. Gonna watch all of your tutorials :D

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more