Getting coordinates

18 views
Skip to first unread message
Assigned to scottfr...@gmail.com by me

Mr. Smart

unread,
Mar 8, 2014, 11:27:54 AM3/8/14
to mitappinv...@googlegroups.com

When I fling the ball is starts moving. The task is to instantly get coordinates of the ball. Real-time regime. Any ideas how to make it? Thanks, guys, in advance

Scott Ferguson

unread,
Mar 8, 2014, 11:41:40 AM3/8/14
to mitappinv...@googlegroups.com
Create a Clock instance.
Inside the Timer block put blocks to update the x and y values.
If you want Label1 to display Ball1.X then its blocks would be
set Label1.Text to get Ball1.X
set Label2.Text to get Ball1.Y
---
Scott

Mr. Smart

unread,
Mar 9, 2014, 3:43:36 AM3/9/14
to mitappinv...@googlegroups.com
Scott, you are a magician! )))))
Thanx a lot!
By the way, I wonder, is there anything this app inventor is not able to do?


--
You received this message because you are subscribed to a topic in the Google Groups "MIT App Inventor Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mitappinventortest/ip2yh7h8zTs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mitappinventort...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mitappinventortest/75dd8c10-a956-4079-ad58-387c41b7d5b7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages