Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

SDK-Script problem....

Ok I am having an error in a script I a making, the error is a no method.
the line is this:
this is in Game_Event
Code:
$Game_Player.event_decoder(self, @list, @character_name)
I am sure I have that method in Game_Player this i s how the method looks.
Code:
def event_decoder(event, list, character_name)        
      @objects.delete(event.id) 
      if character_name == ""
      return       
      end
      if list == nil
      return
      end
      parameters = SDK.event_comment_input(event, 5, "Platformer")    
      if parameters.nil?  
      return
      end
      @object_type =  parameters[0].to_s          
      @object_def1 = parameters[1].to_s          
      @object_def2 = parameters[2].to_s          
      @object_def3 = parameters[3].to_s          
      $Object_Handler.object_selector(@object_type, event, @object_def1, @object_def2, @object_def3)

But it keeps giving me that Error and I can't seem to find how to solve, I am pretty new in the use of the sdk(and pretty new to scripting, but I know some things...),I need help, I don't know what I did wrong.
 
Thank you master(J/K).... lol
Dumb me lol.... it works, but now it gives me an error another script of mine
Code:
$object_handler.object_selector(@object_type, event, @object_def1, @object_def2, @object_def3)
here
Code:
class Object_Handler
  def object_selector(object_type, id, opt1, opt2, opt3)

BTW it looks, i think it is another stupid thing like the one before....

Offtopic: Shark.. you could always come online on MSN, this way i wouldn't be passing this embarassement(SP?)...lol
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top