# Player controls in isometric scene

**URL:** https://forum.makecode.com/t/player-controls-in-isometric-scene/4542
**Category:** Help
**Created:** [November 21, 2020, 9:31am UTC](https://forum.makecode.com/t/player-controls-in-isometric-scene/4542 "2020-11-21T09:31:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![edubsky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/edubsky/32/2132_2.png) [@edubsky](https://forum.makecode.com/u/edubsky)
#### Post date: [November 21, 2020, 9:31am UTC](https://forum.makecode.com/t/player-controls-in-isometric-scene/4542/1 "2020-11-21T09:31:17Z")

</div>

I’d like to make a game with an isometric 2:1 projection, like almost-3D.

I’d like the **controls to be smoother** , because at the moment I’m moving only able to nudge my player sprite (two pixels left/right, one pixel up/down) when left, right, up, or down are pressed. Any ideas?

> **[isometric test](https://arcade.makecode.com/22129-05200-04973-20592)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here is how I’m currently doing it:

 ![Screenshot 2020-11-21 at 10.29.25](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7e13fe902c0d46dcc445ccafc222de8dff20c990.png)

(I’ve got a small sprite at the player’s feet, called heros\_shadow, which I use to detect where their feet are)

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [November 21, 2020, 6:04pm UTC](https://forum.makecode.com/t/player-controls-in-isometric-scene/4542/2 "2020-11-21T18:04:27Z")

</div>

One option would be to changed each of those `pressed` to `repeat`, and then use the `controller` extension to get this block:

 ![SmartSelect_20201121-100036_Chrome](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e5be58b36148e11bbc21ba392050cc05e94f9ea7.jpeg)

This lets you configure the behavior of the `repeat` event - put it in the on start with 0 for delay and 100ms for interval, and the player character will start moving every 100ms while the button is held (with no additional delay the first time it is pressed). You can play with the speed / interval from there - an interval of between 1-30ms should correspond roughly to ‘once each frame’

---

<div class="post-metadata">

### Author: ![edubsky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/edubsky/32/2132_2.png) [@edubsky](https://forum.makecode.com/u/edubsky)
#### Post date: [November 21, 2020, 7:09pm UTC](https://forum.makecode.com/t/player-controls-in-isometric-scene/4542/3 "2020-11-21T19:09:28Z")

</div>

Thanks a mil! That worked: [https://makecode.com/\_5thD2Yh7WK24](https://makecode.com/_5thD2Yh7WK24)

---

<div class="post-metadata">

### Author: ![Segatendo](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Segatendo](https://forum.makecode.com/u/Segatendo)
#### Post date: [April 7, 2022, 5:19pm UTC](https://forum.makecode.com/t/player-controls-in-isometric-scene/4542/4 "2022-04-07T17:19:49Z")

</div>

i used your code and made one

> **[isometric test w repeat](https://arcade.makecode.com/39945-25554-02532-39571)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

what do you think

---

<div class="post-metadata">

### Author: ![Segatendo](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Segatendo](https://forum.makecode.com/u/Segatendo)
#### Post date: [April 8, 2022, 6:10pm UTC](https://forum.makecode.com/t/player-controls-in-isometric-scene/4542/5 "2022-04-08T18:10:24Z")

</div>

> **[isometric test w repeat](https://arcade.makecode.com/72178-62200-92673-09805)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

updated version (i need help on jumping)
