Author Topic: General Discussion  (Read 3821837 times)

0 Members and 23 Guests are viewing this topic.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6885 on: March 19, 2016, 11:29:35 AM »
Oki, I'll keep this in mind if I get to 107 tonight.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #6886 on: March 19, 2016, 12:27:35 PM »
I don't understand how to rotate picture not around the center. I'd like to show wiggling, ie rotate back and forth around center bottom of the picture.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6887 on: March 19, 2016, 12:33:26 PM »
I don't understand how to rotate picture not around the center. I'd like to show wiggling, ie rotate back and forth around center bottom of the picture.

Look at our circle_around atl instructions, those should give you a clue.
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #6888 on: March 19, 2016, 01:05:24 PM »
Well, it circles around just fine for me too, but I need to rotate stuff while keeping the same coordinates  :)

Seems like there should be xaround and yaround for that purpose, but they don't work and no one cares.
Rotate always ignores anchors. Transform_anchor True doesn't change it.
« Last Edit: March 19, 2016, 01:08:31 PM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6889 on: March 19, 2016, 01:14:00 PM »
I prolly don't understand what you're trying to do then... or maybe I do and it cannot be done in a way I expected it could...
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #6890 on: March 19, 2016, 01:18:10 PM »
Rotate always rotates around the center. So far I cannot change it.
I want to rotate around anchor 1,1.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6891 on: March 19, 2016, 01:34:55 PM »
No idea, I never tried it. Hold on.

Edit: No idea... I can't find an easy answer.
« Last Edit: March 19, 2016, 02:11:45 PM by Xela »
Like what we're doing?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6892 on: March 19, 2016, 02:22:23 PM »
Yeah.. I think something along these lines might be the key:

Code: [Select]
transform rotate_around():
    subpixel True
    around (200, 200)
    angle 260
    radius 100
    linear 2 clockwise circles .5 rotate 180
    angle 90
    linear 2 counterclockwise circles .5 rotate 0
    repeat
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #6893 on: March 19, 2016, 02:35:57 PM »
That code moves along the parabola -_-

Looks like yzoom has the same problem. It zooms with anchor 0.5, 0 no matter what.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6894 on: March 19, 2016, 02:39:22 PM »
That code moves along the parabola -_-

Looks like yzoom has the same problem. It zooms with anchor 0.5, 0 no matter what.

What do you want exactly? Can you draw lines in the canvas or find some video of the same?
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #6895 on: March 19, 2016, 02:55:58 PM »
Is this good enough?  :D
See, it stays still yet moves back and forth. Your code moves the whole image.
« Last Edit: March 19, 2016, 02:58:11 PM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6896 on: March 19, 2016, 03:32:50 PM »
So does your example. Radius needs to be set to the half of the image height. Also I f@cked up the first angle a little bit, it needs to be 270, not 260 :(

Actually no, your example does something weirder... I am almost sure that it's like setting the radius to 40% of the displayable height, instead of 50% like I've suggested above.
« Last Edit: March 19, 2016, 03:39:33 PM by Xela »
Like what we're doing?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6897 on: March 19, 2016, 04:23:43 PM »
Man.. I've been at it for almost 3 hours and still just beginning to understands what's what. I got the "doll" movement exactly like on the picture, I now need to know what kind of the movement you're exactly looking for.
Like what we're doing?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #6898 on: March 19, 2016, 04:37:35 PM »
I got it (probably), my mistake was in using clumsy circles statement while angle should have been used:

Code: [Select]
transform rotate_around1():
    subpixel True
    around (200, 200)
    angle 0
    radius 50
    rotate 0
    linear 2 clockwise angle 90 rotate 90
    repeat

Edit:
Yeah... this looks like a winner with decent degree of control of what's going on...
« Last Edit: March 19, 2016, 04:44:43 PM by Xela »
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #6899 on: March 19, 2016, 05:03:13 PM »
Portraits animations are a very promising way to enliven all types of lines and replace missing portraits. Too bad default renpy animation functions don't support half of their methods...

What about yzoom and anchors?
Quote
        block:
            linear 1 yzoom 1.1 anchor (0.5, 1)
            pause 0.1
            linear 1 yzoom 0.9 anchor (0.5, 1)
            repeat

The top edge remains in place while the bottom goes up and down thanks to repeat. While I need the bottom edge to remain in place and the top one to move up and down.
Again, this sh*t ignores anchors, I tried them everywhere I could, even inside linear itself  :-[