Jump to content


Photo

Scrolling Menu


  • Please log in to reply
1 reply to this topic

#1 Muffinn

Muffinn

    GMC Member

  • New Member
  • 30 posts
  • Version:GM8

Posted 03 February 2012 - 11:22 PM

I have a whole list of names and numbers. It's my inventory. It's text based. Each item gets its own row. You control it with the arrow keys. But I want a big list. I want it so when you get to the bottom of the screen, it continues on to the next item and the item at the top of the screen gets pushed up. You see what I mean? Just like scrolling down a page with the arrow keys. How can I do that? With views?

Edited by Muffinn, 03 February 2012 - 11:24 PM.

  • 0

#2 gmx0

gmx0

    The Messenger

  • GMC Member
  • 1182 posts
  • Version:GM6

Posted 04 February 2012 - 02:26 AM

You can use views. Or use loops:

menu_items=(number of menu stuff)
xx=(x of menu)
yy=(y of menu)
var i;
for (i=0;i<menu_items;i+=1;)
{
draw_text(xx,yy+i*(SIZE OF FONT),(TEXT OF MENU STUFF));
}

I really need more info before I finish.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users