Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///rotate(n)
- n = argument0
- orientationGoal = point_direction(x, y, obj_circle.x, obj_circle.y)
- orientationInit = image_angle
- gap = orientationGoal - orientationInit
- if (gap > 0) {
- for(i=0 ; i < n ; i++){
- image_angle += gap/n
- }
- }
- else if (gap < 0) {
- for(i=0 ; i < n ; i++){
- image_angle -= gap/n
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement