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.

Can someone tell me/ do it for me, how to move these hotkey slots!!!!

I just got a kick ass HUD from Axerax,
and i've plotted, or i'm going to, everything else,
but i've just got a problem with the slots because they seem to be joined together, even though they take can different pictures.
def draw_slots
    x = 70
    y = 12
    @slots = $game_player.equiped_teclas.dup
    for i in 0..2
      if @slots.type == 2
        if $game_party.item_number(@slots.id) <= 0
          @slots.clear
        else
          @slots.number = $game_party.item_number(@slots.id)
        end
      end
      if @slots.type == 3
        if $game_party.armor_number(@slots.id) <= 0
          @slots.clear
        else
          @slots.number = $game_party.armor_number(@slots.id)
        end
      end
      if @slots.type == 4
        if $game_party.weapon_number(@slots.id) <= 0
          @slots.clear
        else
          @slots.number = $game_party.weapon_number(@slots.id)
        end
      end
      self.bitmap.blt(x + i * 38, y, @slot, Rect.new(0, 0, 28, 28))
      icon = RPG::Cache.icon(@slots.icon_name)
      self.bitmap.blt(x + 2 + i * 38, y + 2, icon, Rect.new(0, 0, 24, 24))
      if @slots.type >= 2
        size = self.bitmap.text_size(@slots.number.to_s)
        self.bitmap.draw_text(x + i * 38 + 28 - size.width, y + 2 + 28 - size.height, size.width, size.height, @slots.number.to_s, 2)
      end
    end
  end


as you can see it only give you one movement path, or at least i think ( i can't script at all)  so and someone split it up for me ? or show me how?
 

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