# Can some one help me in my game?

**URL:** <https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883>\
**Category:** Uncategorized\
**Created:** [July 8, 2004, 3:12pm UTC](https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883 "2004-07-08T15:12:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craymel](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@Craymel](https://forum.kirupa.com/u/Craymel)\
**Post date:** [July 8, 2004, 3:12pm UTC](https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883/1 "2004-07-08T15:12:38Z")

</div>

hi , i am trying to make a game here , what i want to make is , when you press left button , it will move left and when u press right button it will move right , but i can’t make it . can some one help me ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 8:40pm UTC](https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883/2 "2004-07-08T20:40:13Z")

</div>

> [@Craymel](#):
>
> hi , i am trying to make a game here , what i want to make is , when you press left button , it will move left and when u press right button it will move right , but i can’t make it . can some one help me ?

Just done a bit of work on your file, you can find it here [http://www.gifsrus.com/testfile/game1.fla](http://www.gifsrus.com/testfile/game1.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 11:17am UTC](https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883/3 "2004-07-09T11:17:44Z")

</div>

i don’t get it , the file says

Error: A ‘with’ action failed because the specified object did not exist.

and the tank is missing .

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 11:28am UTC](https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883/4 "2004-07-09T11:28:50Z")

</div>

this will get you moving…

```auto

onClipEvent (enterFrame) {
	if (key.isDown(key.RIGHT)) {
		this._x += 5;
	}
	if (key.isDown(key.LEFT)) {
		this._x -= 5;
	}
}

```

plus i’ve attached a game that i made a while ago, just like you are making now…you should take a look at it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 12:55pm UTC](https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883/5 "2004-07-09T12:55:10Z")

</div>

> [@macneilslt](#):
>
> this will get you moving…
> 
> ```auto
> 
> onClipEvent (enterFrame) {
> if (key.isDown(key.RIGHT)) {
> this._x += 5;
> }
> if (key.isDown(key.LEFT)) {
> this._x -= 5;
> }
> }
> 
> ```
> 
> plus i’ve attached a game that i made a while ago, just like you are making now…you should take a look at it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 9, 2004, 12:57pm UTC](https://forum.kirupa.com/t/can-some-one-help-me-in-my-game/56883/6 "2004-07-09T12:57:50Z")

</div>

Oops sorry,i`d forgotten to saveafter i`d written a function. Try the link again.  
I just attached the tank dynamically, it is there.  
[http://www.gifsrus.com/testfile/game1.swf](http://www.gifsrus.com/testfile/game1.swf)
