Jump to content


Photo
* * * * * 1 votes

Item list menu


  • Please log in to reply
37 replies to this topic

#21 7ravenstudios

7ravenstudios

    GMC Member

  • GMC Member
  • 115 posts
  • Version:GM:Studio

Posted 01 April 2013 - 10:40 AM

I think i understood how to manage it. Seem to work fine.


  • 0

#22 ZigZaggh

ZigZaggh

    GMC Member

  • New Member
  • 19 posts
  • Version:GM:Studio

Posted 13 April 2013 - 06:51 PM

Thank you for sharing this code I really like it! :)
 
I get some weird bouncing back and getting stuck effects, when I set the room speed up to 60, it is not on all swipes but on some, why am I getting this annoying behavior are others experiencing this?
 
I only get this bug swiping on android devices, in windows with mouse swipes I do not get this behavior!
 
I am unable to test iOS.
 

Any solutions, suggestions?


  • 0

#23 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 2957 posts
  • Version:GM:Studio

Posted 13 April 2013 - 07:45 PM

I was making some menues last night and noticed an issue too, maybe the same, not sure.. I have the feeling that (the one I found) is because of the way we swipe with our fingers and the Nexus 7 touchscreen being far more sensitive than the one I used when developing this engine.

Before releasing the screen we tend to "slow down" and thus making the engine slow down as well, as it copies the speed of the finger to scroll, when releasing and slowing own it looses some of its speed and the friction time takes less. I solved it multiipliying "dragy" (on the step event) by something like 0.98 on large lists, but the issue is still there.. on old touchscreens, where the refresh rate and sensitiveness is lower, this issues appears to be nonexistant.

 

For the sake of simplicity I wont rewrite the engine, it is made so people can understand and learn from it, there are ways we could calculate the desired speed of a swipe and apply it to the actual scroll, but all of this requires more complicated stuff than the provided engine.

 

Just to make sure, have you modified something (maybe on the step event?) because what you describe appears to be worse than what i've described (im not getting no bouncing back nor stucks)


  • 0

#24 ZigZaggh

ZigZaggh

    GMC Member

  • New Member
  • 19 posts
  • Version:GM:Studio

Posted 14 April 2013 - 08:01 AM

I made a small example code, so you can try it your self, I rewrote almost everything to make it horizontal scrolling, but I did not touch the important step code, so it should not have an impact. I made the list rather long, so it is easier to trigger the bug.
 
Link to example code:

 
I have a Nexus S and a Nexus 4 which I have done some testing on with my code!:
 
Room speed 60
Nexus 4: Has both mentioned bugs
Nexus S: The bugs occur allot more than on the Nexus 4!
 
Room speed 30
Nexus 4: I am unable to trigger the bug!
Nexus S: Still has it, but rather seldom.

 

Does the Nexus S count as old touch screen, when you mentioned those?

 

Try my code and see what happens :)


  • 0

#25 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 2957 posts
  • Version:GM:Studio

Posted 14 April 2013 - 08:25 PM

Link is not showing up..?


  • 0

#26 ZigZaggh

ZigZaggh

    GMC Member

  • New Member
  • 19 posts
  • Version:GM:Studio

Posted 14 April 2013 - 08:34 PM

Lol that is because I forgot to post it! ;)

 

Link:

https://dl.dropboxus...temListTest.gmz


  • 0

#27 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 2957 posts
  • Version:GM:Studio

Posted 15 April 2013 - 01:29 AM

It could be that you have set it to both landscape and portrait, and you are not using any view adjusting for multiple resolutions or screen rotation. After setting it just to landscape it seemed to work just fine..


  • 0

#28 ZigZaggh

ZigZaggh

    GMC Member

  • New Member
  • 19 posts
  • Version:GM:Studio

Posted 15 April 2013 - 06:11 AM

It does not help, i get the same weird behavior! On project I am working on I have the screen locked to landscape and it does the same, I even get the same behavior on your original code from this topic.
 
The only place where it runs perfectly is on windows.
 
Interesting that you are not experiencing this on your Nexus 7.
 

It does not occur all the time about 50%, so it ruins the experience of a nice swiping translation to the screen!


  • 0

#29 johnandbuddy

johnandbuddy

    GMC Member

  • GMC Member
  • 72 posts
  • Version:GM8

Posted 27 April 2013 - 08:28 PM

Hey,

Great job! it is so fluid! 

I have a question.

In my game I have a pretty drawn background, and I want you use your sliding mechanic,  but I can't figure out how to make it scroll the background. This system seems to just push the objects up or down thus giving the illusion of movement. what I want is to have a bunch of objects that can be clicked, placed down a long room. With a background image at top, that it fades to black at the bottom of the first screen full, so as you scroll down its just black. can your system be tweaked to achieve this, or do i have to start from scratch


  • 0

#30 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 2957 posts
  • Version:GM:Studio

Posted 28 April 2013 - 12:31 AM

You will have to modify how the engine works a little bit, what you are looking for is how to move the views, and I think it was posted in the previous page.

You could also do it without modifiying the engine, but modifiying how you draw your objects instead, but Im not sure wich option will suit your game the best.. it may be more complicated to do..
  • 0

#31 johnandbuddy

johnandbuddy

    GMC Member

  • GMC Member
  • 72 posts
  • Version:GM8

Posted 28 April 2013 - 12:52 AM

You will have to modify how the engine works a little bit, what you are looking for is how to move the views, and I think it was posted in the previous page.

You could also do it without modifiying the engine, but modifiying how you draw your objects instead, but Im not sure wich option will suit your game the best.. it may be more complicated to do..

Thanks for the help. But I actually found a different scrolling example, and it needed to be tweaked less then your system to fit my game. I borrowed aspects of your system to make a hybrid system. Thanks for the help


  • 0

#32 FlavoursGames

FlavoursGames

    GMC Member

  • GMC Member
  • 74 posts
  • Version:GM8

Posted 11 May 2013 - 01:31 PM

what if you want to replace draw sprite and text by objects ?


  • 0

#33 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 2957 posts
  • Version:GM:Studio

Posted 11 May 2013 - 04:12 PM

what if you want to replace draw sprite and text by objects ?

Well, you could, but that would be horribly slow in comparission.. actually the whole point of the scripts is to avoid doing just that  :thumbsup: 


  • 1

#34 Disent

Disent

    GMC Member

  • New Member
  • 1 posts
  • Version:GM:Studio

Posted 11 May 2013 - 04:54 PM

Not bad at all.


  • 0

#35 oakennnnn

oakennnnn

    GMC Member

  • GMC Member
  • 47 posts
  • Version:Unknown

Posted 13 May 2013 - 08:29 AM

I've just adapted this to my IOS game and I can tell you that it is a god send. Well done and an excellent job.


  • 0

#36 ewagstaff

ewagstaff

    GMC Member

  • GMC Member
  • 11 posts
  • Version:GM:Studio

Posted 23 May 2013 - 05:09 PM

Like everyone else has said, incredibly useful. Thanks for posting!


  • 0

#37 chestertagat

chestertagat

    GMC Member

  • New Member
  • 17 posts
  • Version:GM:Studio

Posted 29 May 2013 - 08:20 AM

Link not working??


  • 0

#38 skinnyeddy

skinnyeddy

    GMC Member

  • GMC Member
  • 308 posts
  • Version:GM:Studio

Posted 02 June 2013 - 09:46 PM

Great example! Really useful.

 

Hi,

do you think is difficult to move all in a popup window object ? I mean i would like to use it to create an in-app menu that should appear up to the game in a portion of the screen, like in a object.
I also not understood how to add icons before the text.

If you can help i really appreciate.

Thanks.

I'd also like to know this. How would I going about using scrolling menu as a 'pop-up window', or make it smaller than it currently is?

 

 

Link not working??

Works fine for me.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users