# Im making a game and i need some help!

**URL:** <https://forum.kirupa.com/t/im-making-a-game-and-i-need-some-help/251229>\
**Category:** flash\
**Created:** [February 6, 2008, 2:15pm UTC](https://forum.kirupa.com/t/im-making-a-game-and-i-need-some-help/251229 "2008-02-06T14:15:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilikemyself](https://avatars.discourse-cdn.com/v4/letter/i/fbc32d/32.png) [@ilikemyself](https://forum.kirupa.com/u/ilikemyself)\
**Post date:** [February 6, 2008, 2:15pm UTC](https://forum.kirupa.com/t/im-making-a-game-and-i-need-some-help/251229/1 "2008-02-06T14:15:43Z")

</div>

Hi i am now trying to make a complete rpg game i have already made some games but i am trying to make a very complete game.  
On the begining of my game i though it would be nice to put a name on the character so there will be a box where you type your name and you press a button that says ok and it transferes the name to the character by this action script:on (release) {  
\_parent.textBox2.text = \_parent.textBox.text;  
\_parent.scroll2.\_visible = (\_parent.textBox2.maxscroll \> 1);  
}  
is this action script ok or there are better ways on doing that?

So i want my character to move and im putting it this action script: onClipEvent (load) { moveSpeed = 10;}onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) { this.\_x += moveSpeed; } else if (Key.isDown(Key.UP)) { this.\_y -= 0; } else if (Key.isDown(Key.DOWN) && !fall) { this.\_y += 0; } else if (Key.isDown(Key.LEFT)) { this.\_x -= moveSpeed; }}onClipEvent (enterFrame) { if (Key.isDown(Key.SPACE) && !jumping) { vel\_y = 36; jumping = true; } if (jumping == true) { vel\_y -= 2; if (vel\_y\<=-15) { vel\_y = -15; } this.\_y -= vel\_y; } if (\_root.ground.hitTest(this.\_x, this.\_y+35, true)) { vel\_y = 0; jumping = false; }}onClipEvent (enterFrame) { this.\_y += 16; if (\_root.ground.hitTest(this.\_x, this.\_y+1, true)) { this.\_y -= 16; }}

And i want my background to move too so i will put this action script:onClipEvent (load) {  
movespeed = 7;  
}  
onClipEvent (enterFrame) {  
if (Key.isDown(Key.RIGHT)) {  
\_x-= movespeed;  
}  
if (Key.isDown(Key.LEFT)) {   
\_x+= movespeed;  
}  
}  
After that i would like to have some enemies that move and attack me so if my character would have 50 HP the enemy takes me off 1HP and if i get to 0 die, how would the action script be?

After that i would like to attack to the monster, i need an action script for that.

i would also like the enemy to drop a coin and put it on an itemslot( i tried alredy but i just can’t understand it)

I also wanted to do this: if you step on a certain place you would go to another screen.

I would like to have a store where i can buy stuff and when i buy something the store takes the money the item costed and that item appears on some of my itemslots

Thanx guys sorry if it sounds like i want you to do all work but i been trying to find tutorials and the one on kirupa is horrible.  
Thanx for the answers!!!
