Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 I need help on scrolling
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ragex




PostPosted: Sat Dec 13, 2003 2:26 pm   Post subject: I need help on scrolling

This is my retarded pacman game that i wrote, its a start, but i cant seem to get my pacman to stay on the screen or keep moving when you let go of the arrow keys. If you can help me plz e-mail me.


New Pacman.rar
 Description:
This is the program, it has the source code in it.

Download
 Filename:  New Pacman.rar
 Filesize:  226.25 KB
 Downloaded:  269 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Sat Dec 13, 2003 3:16 pm   Post subject: (No subject)

in your code, you are only drawing pacman when a key is pressed down. so naturally when no key is pressed, then pacman is not drawn. I suggest that at the end of your loop or something, draw pac-man once, but make sure to remember which way he is facing.

btw, do try and use View.Update, I was getting a headache watching the thing flickering.
DanShadow




PostPosted: Sat Dec 13, 2003 5:11 pm   Post subject: (No subject)

http://www.compsci.ca/v2/viewtopic.php?t=2462
There is my topic, it explains the basic or scrolling maps...if you dont understand, pm me or something.
DanShadow




PostPosted: Sat Dec 13, 2003 6:38 pm   Post subject: (No subject)

Actually, even better! I just wrote a tutorial on graphical RPGs, and it includes the secret to make scrolling games. Just goto here:
[Tutorial] Graphical RPG
http://www.compsci.ca/v2/viewtopic.php?t=2524
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: