Any method I can use to draw a line between two sprites located on different points? in Thunkable X canvas.
Thanks
Not at the moment @Chanda_Simfukwe
Our goal goal for the initial release was to offer comprehensive control over sprites and how they interact with one another.
In the next update we will be adding addition feature, such as the ability to draw lines.
Can you tell us a little more about the type of app/game that you are trying to build?
Thanks!
It is a Trail Making Test app for memory test for patients with neurodegenerative diseases, I developed it already for Android OS. Now developing the iOS version, just stuck on drawing lines whenever the sprite is touched. Any other alternative i can use, the all logic is shown in the picture? Thanks.
To solve your problem, you can use Map. When you click on a marker, connect the line markers by drawing polylines. See example Polipaint and
Map canvas
Best regards, Alex
ACtech demo project
Thunkable X Basic Programming Course
Block Reference
Component Reference
Bug tracker
Polipaint
Map canvas
Method Inspector
Performance
Thanks, let me work on it. In case of any problem. I will write in the forum.
Mistake
It was a great idea you suggested but the problem is, I can not edit the markers. Where I can put my own icon in markers and also the background for the google map can not be edited where I just put a blank screen with a white background and put markers at different points and connect them at every point reference from the picture attached. If there is any other alternative please advise, Thanks. @domhnallohanlon
Simplified : Numbers are Markers with icons and the Background is the Map blank When one of the markers is clicked or touched it draws a line connecting to the second marker in sequential order.
Thanks
-
In Google Map, you can put numbers on markers, and create your own markers, display text, but this is not implemented in Thukable X.
-
The coordinate system of Canvas and the screen do not match. For this reason, it is not possible to use components to display numbers.
-
HTML and Javascript are not supported in applications installed on iOS and for this reason it is impossible to use web-technologies
What can you do? Create your own markers on the Map and program to display vector numbers inside these markers. This is a very difficult task.
Another way is to place buttons with absolute coordinates on the screen and insert rectangles with a diagonal line between them. This is also a difficult task, but simpler than the previous option.
Thanks, I understand. I thought of something. If i use one of the sprites on the Canvas with a line as the sprite image and press it between two sprites, Whenever you press one of the sprites then the image in the sprite with a line should appear but how do i set a sprite visible to false whenever the screen opens?
The sprite visibility can be set using blocks. See docs.
Thanks, let me work through then.