Apr-25-2019, 05:04 AM
My assignment is to create a simple maze game. So far everything is working, but i am unhappy with the movement of my sprite.
Sorry if there's any grammar or punctuation errors
turtle.listen() turtle.onkeypress(player.go_left,"a") turtle.onkeypress(player.go_right,"d") turtle.onkeypress(player.go_up,"w") turtle.onkeypress(player.go_down,"s")At the moment this code can make my sprite move using "w", "a", "s", "d" keys to move and you are able to hold down the key to continuously move. What i need help with is the sprite will move one "block" wait a second then start moving. I was wondering if there anyway to make it move as soon as the keys presses?
Sorry if there's any grammar or punctuation errors