What happened to grow by block?

Darkhog

  • Posts: 1243
I remember that in addition to grow to block we had also grow by block. What happened to it? I don't see it in actors/tweening...

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Joe

  • *
  • Posts: 2478
We may have had one at some point. In any case, you can do the same thing with the grow to block, though. You just have to do a little bit of math.

Darkhog

  • Posts: 1243
Can you give me formula? I am not good at math, especially trigonometric.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Alexin

  • *
  • Posts: 3127
There's no trigonometry involve, but only proportions.

If a square is 100 pixels wide and you want it to grow to 200, then it grows twice (200 / 100 = 2). In  other words, you want it to grow by 2. I think you can figure out the rest.
"Find the fun"
alexin@stencyl.com

Darkhog

  • Posts: 1243
Yeah, but in both grow to and grow by we had earlier percents are used, not actual pixels.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Alexin

  • *
  • Posts: 3127
Then convert it to percentage... 2 * 100 = 200%
"Find the fun"
alexin@stencyl.com

Alexin

  • *
  • Posts: 3127
Darkhog, do you need any more help about this?
"Find the fun"
alexin@stencyl.com

Darkhog

  • Posts: 1243
For now no, but only because I don't have time for this now (setting my new Polish Stencyl community).

So I may have questions later.

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D