|
Post by mulamba on Aug 6, 2016 5:03:01 GMT
Im tryng to move the screen a little down, where are the icons to click But im havnt no look with dragdrop.
Very simple a think. Position 1 -> Go down(Position 2), click icons, Go Up( Position1)
|
|
|
Post by AnkuLua on Aug 6, 2016 7:31:17 GMT
Use dragDrop method. dragDrop(PSMRL, PSMRL): Perform a drag-and-drop operation from a starting click point to the target click point indicated by the two PSMRLs respectively. The behavior of dragDrop could be modified by following methods setDragDropTiming(downMs, upMs) downMs: Press the drag position for downMs milliseconds before moving. upMs: Hold on drop position for upMs milliseconds before releasing the touch. setDragDropStepCount(stepCount) stepCount: The number of steps moving from drag to drop positions. setDragDropStepInterval(intervalMs) intervalMs: The interval in millisecond between steps. Read more: ankulua.boards.net/thread/6/basic-objects-methods-introduction#ixzz4GXEwAoMd
|
|
|
Post by mulamba on Aug 7, 2016 22:41:06 GMT
dragDrop dosnt work.
Solution: swipe().
Very Nice!
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on Aug 8, 2016 13:22:47 GMT
swipe indeed works better most of the time when it comes to "moving the screen". Though sometimes a more fine grained control is needed and dragDrop with a high stepcount will do this just fine.
|
|
|
Post by mulamba on Aug 9, 2016 2:58:50 GMT
Could u put some example here? i can't find a way to work with dragDrop.
Thanks!
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on Aug 9, 2016 18:57:13 GMT
Could u put some example here? i can't find a way to work with dragDrop. Thanks! This is all I did: setDragDropTiming(200, 200) setDragDropStepCount(500) dragDrop(Location(660, 333), Location(660, 166)) I guess it differs per game if it will work or not. For me it only started working after I added the setter functions
|
|
|
Post by Franky on Sept 28, 2016 12:48:01 GMT
I too couldn't make dragDrop work (even with setter functions). I haven't been able to work with the touch functions neither. While swipe moves the screen, it has momentum, making it tricky for browsing a list, I had to do a "small" swipe and wait an arbitrary time hoping the list has stopped scrolling. I tried to cheat with swiping horizontally, hoping it would stop the previous swipe but that didn't work. If someone came to a somewhat precise way to use swipe when dragDrop doesn't work, I'd be glad to hear about it.
|
|
|
Post by AnkuLua on Sept 28, 2016 13:07:59 GMT
I too couldn't make dragDrop work (even with setter functions). I haven't been able to work with the touch functions neither. While swipe moves the screen, it has momentum, making it tricky for browsing a list, I had to do a "small" swipe and wait an arbitrary time hoping the list has stopped scrolling. I tried to cheat with swiping horizontally, hoping it would stop the previous swipe but that didn't work. If someone came to a somewhat precise way to use swipe when dragDrop doesn't work, I'd be glad to hear about it. First, swipe just work like what you mentioned. For drapDrop, you can try "(BETA) Use alternative ..." in Settings (if not shown on screen, Settings is in the upper right three vertical dots) .
|
|
|
Post by Franky on Sept 28, 2016 13:39:31 GMT
Thanks, I didn't think of this (beta) option, it was worth trying, but unfortunately, dragDrop still don't work.
BTW, I use and android device not rooted, and the game is "Game of War" (browsing through members list)
EDIT: it is really a game issue, since D&D works ok in other apps, browsing through application list for example
|
|