How do object(Pacman) only rotate less than or equal 360.0 degree? | Sololearn: Learn to code for FREE!

+5

How do object(Pacman) only rotate less than or equal 360.0 degree?

My object (Pacman) can be rotate when i touch down, but rotation values will over 360.0 degrees if i continue touch. I want to limit rotation values from 0 to 360 only. I'm using Kivy Framework, therefore, you maybe use pydroid3 (android) to check my code. Thanks! https://code.sololearn.com/cHqA4ET0C5Jx/?ref=app

11/23/2018 1:17:23 AM

Wtf. Pygo

2 Answers

New Answer

+4

Did you find any solution for your doubt? Actually, I'm also learning Kivy these days and I've already created some stuffs with that but even after thinking and analysing your code for sometime, I couldn't find a solution. I'll again search for it. Meanwhile if you get the solution, please consider sharing it here.

+3

Shashi Ranjan It done! :D https://code.sololearn.com/cHqA4ET0C5Jx/?ref=app https://code.sololearn.com/c10EvPFeJrqq/?ref=app