johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

MoveBy doesn't seem to call "oncomplete" and "onstart" #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Called iTween.MoveBy, passed a hashtable with oncomplete and onstart but 
they don't seem to be called.

2.
iTween.MoveBy(ScrollableObject.gameObject,iTween.Hash("y",ApproximatedWorldCoord
inates.y,"time",1,"easetype","easeOutExpo","delay",0,"onstart", 
"DoSomething","oncomplete","ClampPositionOverShoot"));

What is the expected output? What do you see instead?
I expect that the oncomplete and onstart function are called.  They are called 
when using a similar implementation for MoveTo.

What version of the product are you using? On what operating system?
2.0.38 on OS X 10.6.5

Please provide any additional information below.

Original issue reported on code.google.com by alexande...@googlemail.com on 4 Jan 2011 at 10:58

GoogleCodeExporter commented 8 years ago
Does "ScrollableObject" contain the DoSomething() and ClampPositionOverShoot() 
methods? By default iTween will call these methods on the object that is 
running the iTween.  This is commonly overlooked and adding "onStartTarget" and 
"onCompleteTarget" will solve this issue.

Original comment by pixelplacement on 5 Jan 2011 at 6:35