mandag 12. oktober 2009

Coding 2 keybord and sprite

I coded the keybord first outside the update function"the one that updates the screen for each frame" doing this i had problems whit moving in 2 directions at a time. "exs: left and up, which only made the charecter go left or up.. the first key that was hit". and it wold have created a other problem when i fixed the animation."it wold have restarted the animation each time a key was hit". so i moved it to the update function which fixed the movment problem. the sprite was too hard to wrap my head around so i w8 whit it to the walk trough in class. It was no problem's implementing it after that.

Ingen kommentarer:

Legg inn en kommentar