Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

urgent help

djgaloredjgalore Posts: 56Member
hi there, is it possible to read a maze from a file and use markers on the read maze image to move from point to point referencing by pmouse pointer coordinates.

for instance: if --------
| |------
*
|
|

where there is a * it was initially blank and the * should be there when the user points to that position. is that possible?

Comments

  • zibadianzibadian Posts: 6,349Member
    : hi there, is it possible to read a maze from a file and use markers on the read maze image to move from point to point referencing by pmouse pointer coordinates.
    :
    : for instance: if --------
    : | |------
    : *
    : |
    : |
    :
    : where there is a * it was initially blank and the * should be there when the user points to that position. is that possible?
    :
    :
    Yes. Translate the PMouse pointer coordinates to the data coordinates using some kind of scale variable. Then move the * to the new position, and clear the old one.
  • djgaloredjgalore Posts: 56Member
    hi there, thats wht i thought bti m really struggling. i ll send the image file to you so u can see wht i m talking abt.
Sign In or Register to comment.