How do i assign keys (I - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How do i assign keys (I

Hi! exuce me for my bad english, hope your understand.

I need som help with my school projekt (making 2d fighting game) and i appreciate all help I can get. The programm we use is emarcadero c++ builder. I

Comments

  • DaiMitnickDaiMitnick Posts: 77Member
    I would suggest to overcome this problem, and to stop your game having problems later down the line (mainly flickering) that you abandon the pictureboxes now.

    You should learn to draw directly on the form, it's not just a lot quicker and more reliable than using pictureboxes, but it also allows you to use the form_keypress event for your controls.

    I would recommend reading the small article in the first link to understand the basis of how it works, then use the code in the 2nd link to help guide you to drawing full pictures directly to the form.
    HTH, Dai

    http://www.ww.functionx.com/bcb/gdi/drawing101.htm

    http://www.codeproject.com/KB/graphics/cpicture.aspx



    ------------------------------------------
    Do or do not, there is no try. |
    ------------------------------------------
  • bugget_jrbugget_jr Posts: 6Member
    thanks for the help, got it working.
  • bugget_jrbugget_jr Posts: 6Member
    thanks for the help, got it working.
Sign In or Register to comment.