# Game programming - Help plz

**URL:** <https://forum.kirupa.com/t/game-programming-help-plz/323901>\
**Category:** flash\
**Created:** [July 23, 2011, 11:35am UTC](https://forum.kirupa.com/t/game-programming-help-plz/323901 "2011-07-23T11:35:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFRS](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@MFRS](https://forum.kirupa.com/u/MFRS)\
**Post date:** [July 23, 2011, 11:35am UTC](https://forum.kirupa.com/t/game-programming-help-plz/323901/1 "2011-07-23T11:35:39Z")

</div>

Hi everyone i’m doing a game for a project in school and it’s a mix with dancemania and typing of the dead.

The thing i need help with in AS3 is:

There’s the main character, and when it comes with contact with the enemy it shows the keys to defeat him. I want to know how to program it: so when i hit the first key right, it goes to the second key, and if i fail one of them 1 lose life.

I hope i explained it well, and if you can help me i appreciate it 🙂
