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.

HBGames

I'm absolutely stumped :|

Ok so $game_netplayer is like so:

Code:
  def initialize

    super

    @map_id = 0

    @name = ""

    @level = -1

    @netid = -1

    @hp = -1

    @sp = -1

    @username = ""

    @move_tom = true

    $game_temp.spriteset_refresh = true

    @x = 0

    @y = 0

  end

Where $game_netplayer = Game_Netplayer.new


I am completely stumped as how to do the following:


For the netplayer that has the name "wyatt" change the hp to be 500.



:| Anyone care to remind an old fool?

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