Pascal helpz

hey good night , its friday night and im at FUCKING HOME FUCKING DOING SCHOOL PROJECT FOR BETTER MARKS HELL YEAH

my prob is :
i have to make a game like mario, 2d n stuff nothing hard.
Actually it goes like i made a land with "for" like:


##############################

and i have this "m" character:

m
#######################

and i want to make it move right when i press the rightarrow BUT i dont know how to ?bind? keys so i can actualy tell them what to do

help me please :(


edit:

almost done its ugly , but it works ;D;D
[img|left]http://img860.imageshack.us/i/pascal.png/[/img]
Comments
10
Nice game! Good luck with the project! Fridays are kind of boring for partying anyways :(
Pascal, welcome to 2011!
im oldschool
Parent
deep waters :}
well, its been 5 years I saw pascal for last time, but if I remember correctly, there is a function called readkey, just call it in infinite loop and check inside the loop which key was pressed to determine which action should be taken, easy as that...

EDIT: obviously first important thing to do is to bind quit action to some key (ESC is the best imo) to be able to terminate program properly without doing annoying alt+F4 combo :)
thanks for the help , but already figured out somestuff by myself , i feel so proud :D, but gonna check ur version too
Parent
Back to top