# Run, Walk, Jump, Idle of a Sprite

**URL:** <https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992>\
**Category:** Questions about Thunkable X\
**Created:** [June 6, 2021, 5:58pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992 "2021-06-06T17:58:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gene.arnold9d](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gene.arnold9d/32/86268_2.png) [@gene.arnold9d](https://community.thunkable.com/u/gene.arnold9d)\
**Post date:** [June 6, 2021, 5:58pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/1 "2021-06-06T17:58:18Z")

</div>

I have a small dino figure I’m using for a game. The collection of images offers multiple actions for the little guy. What I’m trying to understand is how to add these all in and categorize them correctly. From what I can tell I’m looking to first create a sprite type of Dino and then I want to add sprites for walking running… How do I switch from one action to another? How do I switch from idle to walking? I’ve found some helpful videos on YouTube that have gotten me to move the dino but I can’t figure out how to change from the collection of images.

---

<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:** [June 6, 2021, 6:04pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/2 "2021-06-06T18:04:48Z")

</div>

Use a timer. Each time it fires change the image from walking to running to walking to running and so on.

---

<div class="post-metadata">

**Author:** ![gene.arnold9d](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gene.arnold9d/32/86268_2.png) [@gene.arnold9d](https://community.thunkable.com/u/gene.arnold9d)\
**Post date:** [June 6, 2021, 6:06pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/3 "2021-06-06T18:06:41Z")

</div>

Yes, I’m using a timer and that works perfect for things so far. But should I have a sprite type of dino with different collections of images below it like running and walking?

---

<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:** [June 6, 2021, 7:21pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/4 "2021-06-06T19:21:02Z")

</div>

Yes. Have at least two, one standing still and the other in motion.

Then you can switch between them each time the clock fires. This will give the illusion of motion.

You can have more than two as well, each one should be of the dinosaur in a different movement state. This will make it appear even more realistic.

---

<div class="post-metadata">

**Author:** ![gene.arnold9d](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gene.arnold9d/32/86268_2.png) [@gene.arnold9d](https://community.thunkable.com/u/gene.arnold9d)\
**Post date:** [June 6, 2021, 8:15pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/5 "2021-06-06T20:15:52Z")

</div>

Do you have an example I can look at? I’m having a hard time understanding how to add the images correctly.

---

<div class="post-metadata">

**Author:** ![gene.arnold9d](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gene.arnold9d/32/86268_2.png) [@gene.arnold9d](https://community.thunkable.com/u/gene.arnold9d)\
**Post date:** [June 6, 2021, 8:18pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/6 "2021-06-06T20:18:28Z")

</div>

Actually, we might not be talking the same thing. I already have multiple images uploaded for when dino walks. When a button is pressed I cycle through the images with a clock and he looks like he is walking. What I’m trying to figure out is how to switch to another action. How do I switch from the walk collection to the run collection?

---

<div class="post-metadata">

**Author:** ![gene.arnold9d](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gene.arnold9d/32/86268_2.png) [@gene.arnold9d](https://community.thunkable.com/u/gene.arnold9d)\
**Post date:** [June 6, 2021, 9:02pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/7 "2021-06-06T21:02:41Z")

</div>

I must be missing something here so let me post some pictures. Right now what I have is two different sprite types. One for walking and another for idle. I’m pretty sure this is not the correct way to do this but I’m giving it a shot in hopes that someone can correct me. As the walk sprite type moves I’m updating the idle one in hopes that they will be in sync.

 ![Screenshot from 2021-06-06 16-59-00](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d2e866310881cf6e9a8dd791e1d882a18e11f8e2.png)  
 ![Screenshot from 2021-06-06 16-59-26](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0fa17b55676479febeb6896cffbb8a69ac468112.png)

---

<div class="post-metadata">

**Author:** ![human](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/human/32/101416_2.png) [@human](https://community.thunkable.com/u/human)\
**Post date:** [June 6, 2021, 9:42pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/8 "2021-06-06T21:42:16Z")

</div>

What you are looking for is this:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/18903ffdb59a122fb7d9f560f48ffede96d7ebd6.png)

With this block, you’ll only need one sprite. However, the sprites have to have different modes.

So your sprite can be idle at the beginning. After one second, it could go to a walking position. After one second it could go to a running position. Of course, this is just an example, so you can build upon this idea.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/3/b3678609764e6a0f2e2d626a9fa3bd856406b57d.png)

---

<div class="post-metadata">

**Author:** ![gene.arnold9d](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gene.arnold9d/32/86268_2.png) [@gene.arnold9d](https://community.thunkable.com/u/gene.arnold9d)\
**Post date:** [June 6, 2021, 11:07pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/9 "2021-06-06T23:07:08Z")

</div>

I think I’ll have to record a video to explain what I’m trying to do because it is not coming across correctly to everyone. Before I do, let me list the page where I got my images from.

> **[Free Dino Sprites](https://www.gameart2d.com/free-dino-sprites.html)**
>
> Free sprite with cute dinosaur character for 2D side scrolling games

Please look at this link. Notice that there are many images for each action. So when the dino is in idle state there should be 10 images cycling to have the dino look alive while standing.

Now when I press the left or right buttons I need the walking images to be used. Same thing for running and dieing.

Does this make more sense now?

---

<div class="post-metadata">

**Author:** ![1negroup](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/1negroup/32/114253_2.png) [@1negroup](https://community.thunkable.com/u/1negroup)\
**Post date:** [August 30, 2021, 7:28am UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/10 "2021-08-30T07:28:26Z")

</div>

Hello Gene so you might have to add another sprite type for this.  
Just to make sure you are wanting to cycle through specific images?

> [@gene.arnold9d](#):
>
> What I’m trying to understand is how to add these all in and categorize them correctly

i am trying to figure out this now because the block next image which is what referenced above doesnt help if you have multiple sprites and 100 images, which is what i have.  
You might have to add Another Parent Sprite\_type and add a sprite with a set of images for running  
and another Sprite\_type with a sprite for the walking images.  
You Then might be able to use the block next image.  
You also might be able to use the set image sprite number to 1 and use a variable to utilize with that.  
But unfortunately there is no way right now to specify images for child sprite types.

---

<div class="post-metadata">

**Author:** ![1negroup](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/1negroup/32/114253_2.png) [@1negroup](https://community.thunkable.com/u/1negroup)\
**Post date:** [August 30, 2021, 7:33am UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/11 "2021-08-30T07:33:54Z")

</div>

Ok yeah so i looked at your game and i think for this you will have to add 5 Parent Sprite\_Types and do what i mentioned above.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:20pm UTC](https://community.thunkable.com/t/run-walk-jump-idle-of-a-sprite/1328992/12 "2024-11-08T13:20:25Z")

</div>


