Search found 4 matches

by neonoxd
Mon Oct 28, 2013 10:10 am
Forum: Support and Development
Topic: Rotating Image in a given time
Replies: 6
Views: 2578

Re: Rotating Image in a given time

your code only works for rotating from upside to down, now i made it work in all 4 directions, but i had to manually "fix" the degree sometimes because its not too precise eg. sometimes i get 273,554654° instead of 270, so i made a "fix" that makes it "jump" from anyth...
by neonoxd
Sat Oct 26, 2013 12:03 pm
Forum: Support and Development
Topic: Rotating Image in a given time
Replies: 6
Views: 2578

Re: Rotating Image in a given time

I think they removed the karma from the website? I haven't checked your code on that part, but it didn't work. If you can, try it on an other computer to see how fast it is. oh okay >< I will, but the player's speed will be adjusted anyway later, when i implement tiles and stuff your code only work...
by neonoxd
Sat Oct 26, 2013 10:13 am
Forum: Support and Development
Topic: Rotating Image in a given time
Replies: 6
Views: 2578

Re: Rotating Image in a given time

Something like this. But instead of running the function when pressing down, you run the function when the gravity is down. Aaah, thank you so much! it's working now, and now i kinda understood this thing. I think I overcomplicated this in my head :D And actually, player movement uses delta time, i...
by neonoxd
Fri Oct 25, 2013 11:25 pm
Forum: Support and Development
Topic: Rotating Image in a given time
Replies: 6
Views: 2578

Rotating Image in a given time

Hello there. I'm working on a game, and i'm trying to implement the basic mechanics. I implemented gravity, smooth movement using velocity, and changing the direction of gravity (which is the main feature of the game) and now i want to do the following: When changing the direction of the gravity, i ...