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.

@column_max Question

In a CMS I am making, I want the items in my menus to display in a single column, rather than two. I've already set @column_max to "1" but there seems to be something else needing a change in def draw_item... Take a look here.

Code:
  #--------------------------------------------------------------------------

  # * Draw Item

  #     index : item number

  #--------------------------------------------------------------------------

  def draw_item(index)

    item = @data[index]

    x = 4 + index % 2 * (288 + 32)

    # The line below needs editing to list items in a single column.

    y = index / 2 * 32

Anyone know what I need to set in that line for the y position? Much thanks!
 

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