• Also, it seems to me that you don't need both an Action that sets rotation and the actual assignment to rotation.. If you want to simulate acceleration, then you need to keep track of a velocity, and pressing the arrow button changes the velocity, and then the rotation is set by adding velocity.

  • @BurntRice you did inverse x and y

    if touch.location in self.UpCrtl.bbox: new_y = self.Player.position.y + 5 if new_y >= 0 and new_y <= 1024: self.Player.position = (self.Player.position.x, new_y) if touch.location in self.DownCrtl.bbox: new_y = self.Player.position.y - 5 if new_y >= 0 and new_y <= 1024: self.Player.position = (self.Player.position.x, new_y)
  • @BurntRice same remarks as @jonb: indentation seems invalid. For instnce:

    def update seems to be internal to def setup loop on touch seems to be internal to setup, thus done only once

    Other remark, in up and down checking, you did swap x and y

    self.player.position = (new_y, self.player.position.x)
Internal error.

Oops! Looks like something went wrong!