# How can i clone objects and how can i controll the moving of them?

**URL:** <https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862>\
**Category:** Questions about Thunkable X\
**Created:** [December 1, 2019, 1:39pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862 "2019-12-01T13:39:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 1, 2019, 1:39pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/1 "2019-12-01T13:39:23Z")

</div>

How can i clone sprites and how can i controll the moving of them?  
I have a game in which a cirlce in the center of the canvas is and balls around the circle should go to the point in the center remove and create another one…

MfG anfaenger

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 1, 2019, 4:10pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/2 "2019-12-01T16:10:17Z")

</div>

Clone and moving

[https://x.thunkable.com/projects/5d7fb653d054d81544e40d5e/project/properties/designer/](https://x.thunkable.com/projects/5d7fb653d054d81544e40d5e/project/properties/designer/)

Best regards, Alex  
[ACtech demo project](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)  
[Thunkable X Basic Programming Course](http://droidscript.ru/main/title_ds15.php)  
[Block Reference](http://droidscript.ru/main/statyi/thunkableios_blockhelper.php)  
[Component Reference](http://droidscript.ru/main/statyi/thunkableios_objects.php)  
[Bug tracker](https://x.thunkable.com/projects/5dbd5243a77acad1b26f851f/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 1, 2019, 4:44pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/3 "2019-12-01T16:44:32Z")

</div>

Thanks but this isnt what i want wait i will show u my game:

 ![Screenshot_20191201-173408](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/0/c0d6f7aac18ff6609c90d0bc4a610043ec61aced.jpeg)

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 1, 2019, 4:45pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/4 "2019-12-01T16:45:24Z")

</div>

I wanna that the ball is flying into the red circle and then shoul be create a new ball at random point and flying to the red circle 🙂

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 1, 2019, 5:10pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/5 "2019-12-01T17:10:36Z")

</div>

Perfectly. In my example, is a new sprite created? It is created as you need. In my example, does a new sprite move to a point on the canvas? It moves. So, based on this example, you can make your own, using the necessary blocks to generate a random coordinate.

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 1, 2019, 5:36pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/6 "2019-12-01T17:36:08Z")

</div>

i dont know how i can do this i am a beginner and u ahve a project with so manay clones i wanna one clone

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 1, 2019, 7:12pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/7 "2019-12-01T19:12:04Z")

</div>

You can specify 1 instead of 10 for the loop and one clone will be created.

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [December 1, 2019, 7:22pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/8 "2019-12-01T19:22:12Z")

</div>

> [@anfaenger](#):
>
> i am a beginner

Before rushing into making apps you might want to read what documentation there is, do tutorials and check for relevant videos on YouTube.

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 3, 2019, 6:42pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/9 "2019-12-03T18:42:01Z")

</div>

it doesnt working for me can somebody help me? the ball dosnt move with ur code actech i tried ur calls

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 3, 2019, 7:47pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/10 "2019-12-03T19:47:35Z")

</div>

This is an example without using a timer. He has a feature. Can you do an example with a timer yourself?

[https://x.thunkable.com/projects/5de6b20b4d23f65c96220990/project/properties/designer/](https://x.thunkable.com/projects/5de6b20b4d23f65c96220990/project/properties/designer/)

Best regards, Alex  
[ACtech demo project](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)  
[Thunkable X Basic Programming Course](http://droidscript.ru/main/title_ds15.php)  
[Block Reference](http://droidscript.ru/main/statyi/thunkableios_blockhelper.php)  
[Component Reference](http://droidscript.ru/main/statyi/thunkableios_objects.php)  
[Bug tracker](https://x.thunkable.com/projects/5dbd5243a77acad1b26f851f/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 8, 2019, 4:52pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/11 "2019-12-08T16:52:22Z")

</div>

Can i use your code for my app which i will publish?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 7:55am UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/12 "2019-12-09T07:55:55Z")

</div>

Yes

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 9, 2019, 12:32pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/13 "2019-12-09T12:32:02Z")

</div>

where is my mistake?  
i wanna remove the sprite when it collides with the color red from my circle

 ![code1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aa3c8ca29e76e4b7a959bd1e062df5f6e5517965.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 1:09pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/14 "2019-12-09T13:09:15Z")

</div>

You need to compare the sprite with the sprite. There are no pixel comparison features in Canvas.

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 9, 2019, 2:49pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/15 "2019-12-09T14:49:55Z")

</div>

and how can i compare they?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 3:02pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/16 "2019-12-09T15:02:00Z")

</div>

Compare collide1 and collide2

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 9, 2019, 3:11pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/17 "2019-12-09T15:11:55Z")

</div>

with which block? i dont understand

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 3:53pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/18 "2019-12-09T15:53:18Z")

</div>

In these blocks are links to sprites that collided with each other.

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/878b9f9fa717afc4807dac935182ffc8870b07be.png)

---

<div class="post-metadata">

**Author:** ![anfaenger](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anfaenger](https://community.thunkable.com/u/anfaenger)\
**Post date:** [December 9, 2019, 4:29pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/19 "2019-12-09T16:29:11Z")

</div>

sorry bro i cant understand how i should do this in my game ☹

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 4:34pm UTC](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862/20 "2019-12-09T16:34:13Z")

</div>

Each sprite has a name. When sprites collide, in the block you can find out the names of the sprites that collided. You can also create a list of all the sprites that are on the screen. What causes you difficulties? All the information is there - you only need to implement the functionality you need.

[Next page](https://community.thunkable.com/t/how-can-i-clone-objects-and-how-can-i-controll-the-moving-of-them/345862.md?page=2)
