Image rotation while moving

后端 未结 2 892
猫巷女王i
猫巷女王i 2021-01-22 00:25

Hello I am here because I have a problem, I am learning pygame but my game cannot changes rotation while moving.

Using a vector didn\'t help.



        
2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-22 00:54

    Make these bits:

    elif keys[pygame.K_a]
    elif keys[pygame.K_d]
    

    Into:

    if keys[pygame.K_a]
    elif keys[pygame.K_d]
    

    That should do it.

提交回复
热议问题