i am making a game that first you drawing on surface but when you pressed Up {it move forward} if you pressed left and right then it change his {direction}
the drawing is working good, the problem is that ,i don't know how to add the other action like moving {forward} changing {direction} to it.
here is the code i used
//Create Even
if mouse_check_button(mb_left){
mxp=mx
myp=my
}
else {
mxp=mouse_x
myp=mouse_y
}
mx=mouse_x
my=mouse_y
//Global Mouse Left Button surface_set_target(surface) draw_line(mx,my,mxp,myp) surface_reset_target()
//Game Start Even surface=surface_create(640,480) mx=mouse_x my=mouse_y mxp=mouse_x myp=mouse_y
//Draw Even draw_surface(surface,0,0)
i know that there are function for adding surface as sprite, but i don't know how to use them please help me!
Credit will be given
Edited by Alive Max, 31 May 2012 - 05:36 AM.











