menu problem who can help me

sdx1987sdx1987 Member Posts: 44
edited November -1 in Working with GS (Mac)
http://gamesalad.com/forums/topic.php?id=14140

this is a slid menu,i want to make a 1440x320 menu,and i have make it,the only problem is i hope the menu could auto stop when the it cross each 480px,how to do that,

i try
when cam.self position is 480px
then the cam.liner.v =0
but it doesn't work.

is it right?

Comments

  • AjBlueAjBlue Member Posts: 215
    if you have watch tshirtbooths tutorial on how to make scrollable screens, somewhere in the code i think you need to have a *480 in there somewhere to control how far it scrolls
  • sdx1987sdx1987 Member Posts: 44
    you mean the max cam position?max( self.Position.X ,240)
  • AjBlueAjBlue Member Posts: 215
    i got it man, here tshirtbooth tutorial if you haven't seen it. now what you want to do is change the drag actors otherwise constrain attribute, and change self.Motion.Linear Velocity.X *0.95 to the pixel size you want it to jump for each pixel. well it might not work as you want but its a start. i think if you have like 4 pages and you move you mouse 4 pixels to the side that you will jump to the 4th page.. but if you mess around im sure you could make it so one swipe can only go a max amount of pixel at a time
  • sdx1987sdx1987 Member Posts: 44
    ok i'll try
  • sdx1987sdx1987 Member Posts: 44
    how about
    when cam.self position is 960px 1440px
    then the cam.liner.v =0
    but it doesn't work
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    just interpolate the position to where you want it, that way it automatically stops when reaches destination. You can email me for a demo if youd like
  • IncrediboIncredibo Member Posts: 274
    John May You E-MAIL ME A DEMO??

    Thnks,
    Bo
Sign In or Register to comment.