GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

simple scrolling menu, not too hard to devise

strangealienstrangealien Posts: 40Member
edited November -1 in Working with GS (Mac)
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,

Comments

  • it's actually SheepQuantum;)

    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
  • StormyStudioStormyStudio United KingdomPosts: 3,987Member
    nope its Quantum Sheep.... as in Quantum leap...

    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?
  • UtopianGamesUtopianGames Posts: 5,686Member
    I would probably do it using layers and interpolate.

    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.
  • strangealienstrangealien Posts: 40Member
    Thanks guys for your replies. Well, I'd like to do a scrolling type menu only at the bottom of the screen, so just the menu that I want to pan left or right with arrows. Utopiangames, I like your method for this, but not sure how you do the layer thing and image overlay. Do you mind explaining a bit more? Sorry if I sound basic, but as I say I'm new to this. :p

    revoltingpeasant, how do you do this with columns, moving items to left and right? could you explain a bit more?

    thanks,
  • UtopianGamesUtopianGames Posts: 5,686Member
    A menu system is pretty complex as imo you would need to move items across for eg say you use item 1 then imo item 2 should slide over to where 1 was.

    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.
  • @stormy: yeah, like maplefire
  • gyroscopegyroscope I am here.Posts: 6,577Member, Sous Chef, PRO


    :-)

    Seriously, excellent template by Darren.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • strangealienstrangealien Posts: 40Member
    Darren, thanks a lot, that looks great! I had more in mind the whole menu sliding across so items appear and disappear from screen (scroll from left to right and vice versa) when you touch the left and right arrows (if that makes sense). But I have been tearing my hair out all week trying to figure out how you might do that. For now the way that you've done the template looks practical for my needs and simple. If you don't mind I'd like to get the template from you (and I can learn a thing or two!) I'll send you a mail.

    thanks a bunch,
  • strangealienstrangealien Posts: 40Member
    gyroscope, that is too funny. i hope revolting peasant isn't offended. :D
  • strangealienstrangealien Posts: 40Member
    Just to say again Darren, thanks a lot for putting the time in to show me how to do that. Appreciate it.
  • strangealienstrangealien Posts: 40Member
    Hi Darren, Utopian Games,

    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,
  • UtopianGamesUtopianGames Posts: 5,686Member
    No didn't get the mail.

    did you change the [at] for @ ?

    Darren.
  • strangealienstrangealien Posts: 40Member
    Yah, I sent you an email to: [email protected]

    Is that right?

    cheers,
  • strangealienstrangealien Posts: 40Member
    Not really sure what to do now since I've sent you 2 emails to the address you provided to ask you for the template above, hoping that you might help.

    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.
  • UtopianGamesUtopianGames Posts: 5,686Member
    Email got through and i just sent you the project.

    Darren.
  • strangealienstrangealien Posts: 40Member
    Thanks Darren, got the email, I'll take a look.
  • scitunesscitunes Posts: 4,047Member, Sous Chef
    I just make a scene that is however many screens x 480 (so three screens worth would be 3x480 or 1440

    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.
  • strangealienstrangealien Posts: 40Member
    Thanks scitunes, that's a great idea. Do you have a demo at all that I could take a look at? It'd be a real help.
This discussion has been closed.