Creating an image sprite drag similar to Tinder

203 views
Skip to first unread message

Trevor

unread,
Nov 6, 2015, 3:09:52 PM11/6/15
to MIT App Inventor Forum


Is it possible to create something at least similar to this type of drag? I have tried dragging, flinging, edge. I have been searching high and low for any information on this but can't find anything. Running out of ideas.

Scott Ferguson

unread,
Nov 6, 2015, 3:33:30 PM11/6/15
to MIT App Inventor Forum
Taifun has an example of using the Flung event to change between images in AI Classic blocks.
It would be easy to do the same thing in AI2 blocks.
---
sf

Trevor

unread,
Nov 6, 2015, 3:41:10 PM11/6/15
to MIT App Inventor Forum
I currently have this functioning and working but I wanted to accomplish a more animated look, similar to Tinder.

SteveJG

unread,
Nov 6, 2015, 5:03:21 PM11/6/15
to MIT App Inventor Forum
Great the basics are working  for you Trevor in your app.  To get the 'Tinder' look, you will have to use the Android SDK, which probably means coding in Java using Eclipse or Android Studio.  Unfortunately App Inventor is an entry level Android compiler; it does not have the bells and whistles that Android Studio has access to.    AI2 can do a lot, dramatic graphics are one of AI2's weak spots.  It is still amazing what can be done with AI using one's imagination and with the tool's limitations.

Regards,
Steve

Taifun

unread,
Nov 6, 2015, 7:22:53 PM11/6/15
to MIT App Inventor Forum
my fling example also is available for App Inventor 2 here http://puravidaapps.com/snippets.php#2flung
Taifun

Scott Ferguson

unread,
Nov 6, 2015, 8:32:36 PM11/6/15
to MIT App Inventor Forum
I am thinking have a Canvas larger than the Screen dimensions.
The layout would be the BackgroundImage on the Canvas.
The 'pages' would be ImageSprites that are tilted using the ImageSprite Heading property and moved using the Speed property.
Tricky to implement but perhaps doable.

---
sf

Trevor

unread,
Nov 7, 2015, 3:15:40 PM11/7/15
to MIT App Inventor Forum
Thank you guys, I am going to try both Taifun and Scott's ideas. If they aren't enough I will be moving over to the android SDK to get this going. Hoping for the best in app inventor. My coding skills are lacking at the moment.
Reply all
Reply to author
Forward
0 new messages