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.

Need help with netplay 2.0

Status
Not open for further replies.

swen

Member

I got netplay 2.0 working but when i edit something (like adding an event or somehting) i get this error:

Code:
Script 'Network Libary' line 1211: NoMethodError occured.
undefined method `move' for  nil:NilClass

LINE 1211 in Script Editor [Network Libary]
Code:
      $game_map.events[$1.to_i].moveto($2.to_i,$3.to_i)

Line 1209 till 1216 in Script Editor [Network Libary]
Code:
    case data
    when /start id=(.*) x=(.*) y=(.*)/
      $game_map.events[$1.to_i].moveto($2.to_i,$3.to_i)
    when /id=(.*) x=(.*) y=(.*) d=(.*) t=(.*)/
      return if $game_map.events[$1.to_i]==nil
      event = $game_map.events[$1.to_i]
      event.refresh_global($2.to_i,$3.to_i,$4.to_i,$5.to_i)
    end

Can anyone help me?
 
Status
Not open for further replies.

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