Easing/Tweening

bobbyck

  • Posts: 124
Hi,

I'm having an issue with tweening / easing.

I'm using a "grow" block (Actor->Tweening) to dynamically change the size of an actor when the actor is first created.

Grow "self" to ( w 50 h 50 ) over 0 second using none

However, it's making the actor go bezerk. Shaking, jumping up and down, flashing animations on/off etc. Am I doing something wrong or is there another way to achieve the same result?

TY.
BK.

yoplalala

  • *
  • Posts: 1632
(you can try 0.1 second instead of 0)
Could you post a screenshot ? Normally it should work

bobbyck

  • Posts: 124
Hi,

I tried several time delay variations before posting, no effect.



You can see a video of what happens here - http://plays.tv/video/56326a36acfb02cca4  - (no i am not pressing any keys to make him move).

The weird thing is I am using the EXACT same effect on other actors (enemies) to make them grow to 500% over 2seconds and it works fine. Perhaps something is wrong with the animations/frames?

yoplalala

  • *
  • Posts: 1632
Indeed it must be the fact that it has plenty of animations . Hmm,  Maybe try this extension http://community.stencyl.com/index.php/topic,34277.0.html to set size.

purplelava

  • Posts: 82
Scaling Utilities is an essential extension that should be used.

This said, I never had a problem with the grow command which regularly scaled my actors properly. The jerking is probably because of other blocks/scripting. Try to deactivate all behaviors for the actor and just use the grow, it should work. It must be something else.

bobbyck

  • Posts: 124
After far too many hours trying various things, including working on the animations, problem in the end was due to the "Origin Point" :/

Still working out last few kinks in it.

Thanks for the input and the extension link, quite useful.