# How to change a spritekind?

**URL:** <https://forum.makecode.com/t/how-to-change-a-spritekind/7258>\
**Category:** Help\
**Created:** [April 8, 2021, 3:07pm UTC](https://forum.makecode.com/t/how-to-change-a-spritekind/7258 "2021-04-08T15:07:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandodon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brandodon/32/3625_2.png) [@brandodon](https://forum.makecode.com/u/brandodon)\
**Post date:** [April 8, 2021, 3:07pm UTC](https://forum.makecode.com/t/how-to-change-a-spritekind/7258/1 "2021-04-08T15:07:30Z")

</div>

How would I do this? I am trying to make a controller up is pressed, it changes the spritekind. This is in Javascript btw

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 8, 2021, 4:28pm UTC](https://forum.makecode.com/t/how-to-change-a-spritekind/7258/2 "2021-04-08T16:28:33Z")

</div>

Blocks:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/612de5010fa59be7083a4ed237bfd32ee6c3c0b0.png)  
TypeScript:

```typescript
mySprite.setKind(SpriteKind.Player) // Could also be, for example, SpriteKind.Text if you have a kind called "Text"

```

Python:

```python
mySprite.set_kind(SpriteKind.Custom) # Could also be, for example, SpriteKind.Text if you have a kind called "Text"

```

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [April 8, 2021, 4:28pm UTC](https://forum.makecode.com/t/how-to-change-a-spritekind/7258/3 "2021-04-08T16:28:42Z")

</div>

Set sprite kind to:

---

<div class="post-metadata">

**Author:** ![ImaAngryBear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imaangrybear/32/3834_2.png) [@ImaAngryBear](https://forum.makecode.com/u/ImaAngryBear)\
**Post date:** [April 8, 2021, 5:02pm UTC](https://forum.makecode.com/t/how-to-change-a-spritekind/7258/4 "2021-04-08T17:02:52Z")

</div>

when you are in javascript in sprites go to overlaps. there is a piece there that says “Set mySprite kind to player.” you can change that if you want.
