Java

Moderators: zibadian
Number of threads: 7818
Number of posts: 18218

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
urgent help Posted by djgalore on 13 Oct 2006 at 1:16 AM
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?

Report
Re: urgent help Posted by zibadian on 13 Oct 2006 at 5:24 AM
: 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.
Report
Re: urgent help Posted by djgalore on 13 Oct 2006 at 10:53 PM
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.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.