RPG Item Menu Scrolling... Question, any ideas?
Hello, I was just wondering... I have been staring at code for awhile now trying to figure out an Algorithm on how to make the Item Menu scroll down like in Final Fantasy. I don''t want the pointer to stay in the same place (because I already know how to do that) I want it so when the cursor moves to the last Item that is displayed it starts to scroll down the list every time the player tires to go down past the last item. And same visa versa with the top.
Could answers be general and not based to any programming languages? (I just basically need an Algorithm)
Thanks for any help!
Alex Ford
PointSoft EA Co., Ltd.
http://www.pointsoftonline.com
Alex FordPointSoft Studios | ARF Developments
A little clarity, your going to have to create a section just below the last item(or above the first item) that acts as a message to the list.
TTTTT
00002 <--- currently TopSeenPoint is at 00002
00003
00004
00005
BBBBB
if ( INAREA(TTTTT) )
TopSeenPointer is changed to 00001 item
if ( INAREA(BBBBB) )
TopSeenPointer is changed to 00003 item
You can add graphical bits at BBBBB and TTTTT or not.
Interesting variation on a drop box.
ZoomBoy
Developing a iso-tile 2D RPG with skills, weapons, and adventure. See my old Hex-Tile RPG GAME, character editor, diary, 3D Art resources at Check out my web-site
TTTTT
00002 <--- currently TopSeenPoint is at 00002
00003
00004
00005
BBBBB
if ( INAREA(TTTTT) )
TopSeenPointer is changed to 00001 item
if ( INAREA(BBBBB) )
TopSeenPointer is changed to 00003 item
You can add graphical bits at BBBBB and TTTTT or not.
Interesting variation on a drop box.
ZoomBoy
Developing a iso-tile 2D RPG with skills, weapons, and adventure. See my old Hex-Tile RPG GAME, character editor, diary, 3D Art resources at Check out my web-site
Yeah... that was one of my ideas... having a fake option above the current option, but I don''t know how I would display the new items that come up in the list... probably something like a HEX figure? Kind like what you had..
00002
00003
it would assign names to the 00003 and 00002... but I still don''t know how I would do that efficiently...
Alex Ford
PointSoft EA Co., Ltd.
http://www.pointsoftonline.com
00002
00003
it would assign names to the 00003 and 00002... but I still don''t know how I would do that efficiently...
Alex Ford
PointSoft EA Co., Ltd.
http://www.pointsoftonline.com
Alex FordPointSoft Studios | ARF Developments
Hmm, maybe have one variable to keep track of the cursor position, and one for the menu? So, you for going up, you could do like:
You''ll have to figure out how many items can fit on the screen at once for going down (since menuPos would keep track of the top item showing), but that shouldn''t be too hard.
|
You''ll have to figure out how many items can fit on the screen at once for going down (since menuPos would keep track of the top item showing), but that shouldn''t be too hard.
The structure to back this up is a linked-list and a function to display the linked list.
How far are you along in creating a linked list for this menu display function?
Or are you using an array of strings?
ZoomBoy
Developing a iso-tile 2D RPG with skills, weapons, and adventure. See my old Hex-Tile RPG GAME, character editor, diary, 3D Art resources at Check out my web-site
How far are you along in creating a linked list for this menu display function?
Or are you using an array of strings?
ZoomBoy
Developing a iso-tile 2D RPG with skills, weapons, and adventure. See my old Hex-Tile RPG GAME, character editor, diary, 3D Art resources at Check out my web-site
Well actually all I have is a list of items and a moving cursor (this isnt done in C++, mind you.. But I will be able to use the same algorithm in C++ after I figure out how...)
I have say 10 Items in the displayed list... I have about 30 other items... I want to cursor to move but when it hits the bottom it starts to scrool the list... Not sure how to do that... I''m going to try and work with what some of you guys suggested right now...
Alex Ford
PointSoft EA Co., Ltd.
I have say 10 Items in the displayed list... I have about 30 other items... I want to cursor to move but when it hits the bottom it starts to scrool the list... Not sure how to do that... I''m going to try and work with what some of you guys suggested right now...
Alex Ford
PointSoft EA Co., Ltd.
Alex FordPointSoft Studios | ARF Developments
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement