I think i understood how to manage it. Seem to work fine.
Item list menu
#21
Posted 01 April 2013 - 10:40 AM
#22
Posted 13 April 2013 - 06:51 PM
Any solutions, suggestions?
#23
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)
#24
Posted 14 April 2013 - 08:01 AM
Does the Nexus S count as old touch screen, when you mentioned those?
Try my code and see what happens ![]()
#25
Posted 14 April 2013 - 08:25 PM
Link is not showing up..?
#26
Posted 14 April 2013 - 08:34 PM
#27
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..
#28
Posted 15 April 2013 - 06:11 AM
It does not occur all the time about 50%, so it ruins the experience of a nice swiping translation to the screen!
#29
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
#30
Posted 28 April 2013 - 12:31 AM
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..
#31
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
#32
Posted 11 May 2013 - 01:31 PM
what if you want to replace draw sprite and text by objects ?
#33
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
#34
Posted 11 May 2013 - 04:54 PM
Not bad at all.
#35
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.
#36
Posted 23 May 2013 - 05:09 PM
Like everyone else has said, incredibly useful. Thanks for posting!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











