Need help in adding movements!!

I am using Allegro 5. What I want to do is that certain sprites will be displayed when I press a key. For example when I press space bar the character will grab his gun and fire. If anyone knows how to do this pls help me.
Topic archived. No new replies allowed.