# Dungun Game

**URL:** <https://forum.makecode.com/t/dungun-game/4422>\
**Category:** Arcade\
**Tags:** game\
**Created:** [November 14, 2020, 1:45am UTC](https://forum.makecode.com/t/dungun-game/4422 "2020-11-14T01:45:16Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 25, 2020, 8:06pm UTC](https://forum.makecode.com/t/dungun-game/4422/21 "2020-11-25T20:06:30Z")

</div>

Kat, can you help me again, I need to know how to have gravity, my sprite is just flying all over the place, so without gravity, my game will not be, a game

---

<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:** [November 25, 2020, 8:54pm UTC](https://forum.makecode.com/t/dungun-game/4422/22 "2020-11-25T20:54:30Z")

</div>

All I think you need to do is set the `ay` of the sprites you want to be affected by gravity to be some positive number, like 100.

---

<div class="post-metadata">

**Author:** ![MopishCobra75](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mopishcobra75/32/2992_2.png) [@MopishCobra75](https://forum.makecode.com/u/MopishCobra75)\
**Post date:** [November 25, 2020, 10:09pm UTC](https://forum.makecode.com/t/dungun-game/4422/23 "2020-11-25T22:09:20Z")

</div>

How do you that 😅

---

<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:** [November 25, 2020, 10:51pm UTC](https://forum.makecode.com/t/dungun-game/4422/24 "2020-11-25T22:51:53Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/716408e851997294240d02a7af8f04f870e29857.png)

```typescript
// TypeScript
let mySprite = sprites.create(img`
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    . . . . . . . . . . . . . . . . 
    `, SpriteKind.Player)
mySprite.ay = 100

```

```python
# Python
mySprite = sprites.create(img("""
        . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . . 
            . . . . . . . . . . . . . . . .
    """),
    SpriteKind.player)
mySprite.ay = 100

```

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [November 30, 2020, 5:05pm UTC](https://forum.makecode.com/t/dungun-game/4422/25 "2020-11-30T17:05:53Z")

</div>

Eek! Sorry I didn’t see this! I’ve been in-active for a couple of days. It looks like @UnsignedArduino helped you though. Lemme know if you need anything!

[Previous page](https://forum.makecode.com/t/dungun-game/4422.md?page=1)
