simple scrolling menu, not too hard to devise
strangealien
Member Posts: 40
Hi,
I'm new to this so any help would be appreciated. I have a lot of selectable items that won't fit on the iphone screen, so I'd like to try and do a scrolling type menu where you would click a left or right arrow to scroll the menu of items across the bottom of the screen. Then I'd like to be able to select the different items to put into a box. I've looked at MapleFire's scrolling demo, but don't really understand how to do this with the behaviours and attributes. Can someone or even MapleFire, QuantumSheep, or T-ShirtBooth show how it can be done - for a beginner.
thanks,
I'm new to this so any help would be appreciated. I have a lot of selectable items that won't fit on the iphone screen, so I'd like to try and do a scrolling type menu where you would click a left or right arrow to scroll the menu of items across the bottom of the screen. Then I'd like to be able to select the different items to put into a box. I've looked at MapleFire's scrolling demo, but don't really understand how to do this with the behaviours and attributes. Can someone or even MapleFire, QuantumSheep, or T-ShirtBooth show how it can be done - for a beginner.
thanks,
Comments
Anyway, the easiest, maybe not the best, way, would be to just load a new scene upon pressing the scroll-button.
or just move all the items the left (image-width + space between columns), so the outermost-column on the left disappears and the one on the right changes to the new images, all others move a column to the left.
cheers
RP
have you played around with the camera and a panning screen yet, or is it only a menu at the bottom that you want to pan?
Say you have 10 items but only want 5 visable.....
Use an image overlay and put the items under that layer.
Each item would then interpolate or move to a set X
You would need an integer for the arrows...something like if left arrow is pressed leftscroll=1
Darren.
revoltingpeasant, how do you do this with columns, moving items to left and right? could you explain a bit more?
thanks,
You also need do to a lot of image swapping...i think.
I have never tried to do this before but think it will be harder than you think.
Anyway had a quick go at a demo to show you what i mean about layers.
Pop me a mail over to toyboxuk[at]hotmail.com if you want the template but i would probably do it a different way if i had more time and put more thought into it....like i say i have never needed to do this so not sure yet what the best way would be.
Darren.
:-)
Seriously, excellent template by Darren.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
thanks a bunch,
Sent you an email to your address above. Did you get it?
By the way is the template you made in the pro version or the express version? I've currently got the express version, so hoping opening up the template will be fine in this version.
Please can you send me the template as much needed!
Thanks,
did you change the [at] for @ ?
Darren.
Is that right?
cheers,
toyboxuk{at]hotmail.com yes, the [at] has been replaced with @ erm..I know how to send emails
cheers for showing the demo, but without looking at the template, I can't learn anything from it.
Darren.
Then I lay out my buttons. I put a background on a non scrollable layer behind everything else. Then I create the buttons that switch the view witch I have to unlock so I can get to the camera attributes. then I simply have a when touch is pressed interpolate camera.origin.X to 480 or 960 or whatever. Because the background is on a non scorlling layer the buttons appear to slide the opposite way that in reality the camera is moving.