|
Post by bobop10 on Jul 18, 2004 19:29:31 GMT -5
ok im working on my main char currently and the movement on on the world. It is basicly when left is pressed it jumps relative to -3,0. In my no key event i want it where it face the direction it was moving in last and change into a sprite thats not moving. i came up with this :
if xprevious<-3 { draw_sprite(hero_index,hero_left,hero.x,hero.y) }
if xprevious<3 { draw_sprite(hero_index,hero_right,hero.x,hero.y) }
if yprevious<-3 { draw_sprite(hero_index,hero_back,hero.x,hero.y) }
if yprevious<3 { draw_sprite(hero_index,hero_forward,hero.x,hero.y) }
the problem is that at the draw_sprite command it does not draw the sprite that i specify. What did i do wrong?
|
|
|
Post by bobop10 on Jul 19, 2004 6:12:58 GMT -5
i found my problem. the first argument should be the sprite and the secound should be the subimage. i didnt understand dat at first but now i do.
|
|