plz help me to write code to swipe image in any direction

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sharangouda
Posts: 3
Joined: Sun Oct 07, 2012 11:55 am

plz help me to write code to swipe image in any direction

Post by sharangouda » Mon Oct 08, 2012 6:50 am

this s sharan
friends help to swipe the object or any image in any direction.
advabce thanks
your's
sharan

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: plz help me to write code to swipe image in any directi

Post by Klaus » Mon Oct 08, 2012 10:31 am

Put this in the image script:

Code: Select all

on mousedown
  grab me
end mosuedown
And work through these stacks to get started with Livecode:
http://www.runrev.com/developers/lesson ... nferences/

Welcome to the forum! :D


Best

Klaus

sharangouda
Posts: 3
Joined: Sun Oct 07, 2012 11:55 am

after swipe image how to find angle n directon of swipe of i

Post by sharangouda » Tue Oct 09, 2012 5:14 am

thanks kauls
i want developt i dart game in this i have to swipe image to up and some objects moving in the circle mannar in top.
i have swipe image in any directon and touch the object in the swipe direction.so i need code to swipe and aftr the image i need to find swipe direction and angle of swipe image in order to move the image to disered position to intersect the disered object.plz help me for this code.
thanks
your's
sharan

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: plz help me to write code to swipe image in any directi

Post by Klaus » Tue Oct 09, 2012 10:00 am

My name is Klaus!

I recommend to work through these stacks to get the basics of Livecode:
http://www.runrev.com/developers/lesson ... nferences/

sharangouda
Posts: 3
Joined: Sun Oct 07, 2012 11:55 am

Re: plz help me to write code to swipe image in any directi

Post by sharangouda » Tue Oct 09, 2012 5:57 pm

sorry klaus i missplied u name.plz give simple example of how to get direction of swiped image and direction o f swiped image.
regsrd's
sharan

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: plz help me to write code to swipe image in any directi

Post by Klaus » Sat Oct 13, 2012 5:23 pm

Hi sharan,

if you are still reading, here is a thread related to your wish:
http://forums.runrev.com/phpBB2/viewtop ... =7&t=13137


Best

Klaus

Post Reply