How to make an object move when I swipe my finger up?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 43
- Joined: Mon Oct 15, 2012 6:44 pm
How to make an object move when I swipe my finger up?
Hello
I have now an object and a line to move the object on, and I added a button when I click on it the object move on the line,,I want to remove the button and use swiping, when i swipe up the object move on line1 , when I swipe down the object move on line2, when I swipe left the object move on line3, when I swipe right the object move on line4, how to make this?
Please help
Note: This for mobile devices. (Android)
Thanks
I have now an object and a line to move the object on, and I added a button when I click on it the object move on the line,,I want to remove the button and use swiping, when i swipe up the object move on line1 , when I swipe down the object move on line2, when I swipe left the object move on line3, when I swipe right the object move on line4, how to make this?
Please help
Note: This for mobile devices. (Android)
Thanks
Last edited by ahmedinvent24BUSGdU9 on Fri Apr 12, 2013 12:43 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: How to make an object move when I swipe my finger up?
hi ahmedinvent24BUSGdU9
whew.. what a long name !... I don't have the time to adjust the scripts, but if you substitute going from card to card in the stack that is attached with code to move a graphic, it will do what you wish... this stack allows you to swipe to the left or right or up or down...
be well
Dixie
whew.. what a long name !... I don't have the time to adjust the scripts, but if you substitute going from card to card in the stack that is attached with code to move a graphic, it will do what you wish... this stack allows you to swipe to the left or right or up or down...
be well
Dixie
- Attachments
-
- swipes.livecode.zip
- (2.13 KiB) Downloaded 332 times
-
- Posts: 43
- Joined: Mon Oct 15, 2012 6:44 pm
Re: How to make an object move when I swipe my finger up?
Hi, Dixie
This is not working!
This is not working!
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: How to make an object move when I swipe my finger up?
Can't help you... it works here both in the simulator and on an iphone.
Dixie
Dixie
-
- Posts: 43
- Joined: Mon Oct 15, 2012 6:44 pm
Re: How to make an object move when I swipe my finger up?
Oops!
I'm Using Android!
Sorry!
How to make it working on Android?
Ahmed F.
I'm Using Android!
Sorry!
How to make it working on Android?
Ahmed F.
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: How to make an object move when I swipe my finger up?
Here is the lesson:
http://lessons.runrev.com/s/lessons/m/4 ... ll-a-field
It uses text but you can use a graphic instead.
Simon
http://lessons.runrev.com/s/lessons/m/4 ... ll-a-field
It uses text but you can use a graphic instead.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 43
- Joined: Mon Oct 15, 2012 6:44 pm
Re: How to make an object move when I swipe my finger up?
Hi Simon
So how can I use graphic instead the field?
Thanks
So how can I use graphic instead the field?
Thanks
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: How to make an object move when I swipe my finger up?
ahmedInvent.....
Stack with a graphic on a card... swipe up to move it 'up, swipe 'down' to move it down..
Dixie
Stack with a graphic on a card... swipe up to move it 'up, swipe 'down' to move it down..
Dixie
- Attachments
-
- swipeObject.livecode.zip
- (2.09 KiB) Downloaded 312 times
-
- Posts: 43
- Joined: Mon Oct 15, 2012 6:44 pm
Re: How to make an object move when I swipe my finger up?
Woow!
Thank you Dixie!
But still have a question
How to make the swipe left and right?
Best Regards
Ahmed F.
Thank you Dixie!
But still have a question
How to make the swipe left and right?
Best Regards
Ahmed F.