Jump to content
Search Community

protoemocional

Members
  • Posts

    20
  • Joined

  • Last visited

protoemocional's Achievements

0

Reputation

  1. Hello dear TweenMaxers and Greensock, Once again I resort to you to... This time, I have some doubts on how to insert a TweenMax instance onto a Timeline without triggering its first position. Take for example this attachment, where I have described a LinePath2D with progress 0, inserting its Tween at frame number 5, yet it still renders its elements on stage, instantly. Is there a way to inserting/appending/whatever Tweens without having to write action snippets on every desired frame, in order to not render a Tween's trajectory on the spot?
  2. Thanks for such an illustrating explanation, I had always wondered about all those 0.nines in the source files. Quite interesting, this time-wrapping (un)paradox.
  3. Hello, I have spotted strange behaviour using LinePath2D in conjunction with SteppedEase and useFrames turned on. It basically avoids state 0 of the LinePath2D when you step once per frame. Please see the attachment. Is this intended behaviour? How can it be solved? Thanks in advance.
  4. Nevermind, I think I solved the issue. Anyhow, I have noticed that if you have a TimelineMax (time1) variable instantiated directly in your document class, nothing you append from within the IDE timeline will progress beyond state 0. This become even worse if you want to append some global TimelineMax (time1, time2, time3) variables to a master TimelineMax (master.append()), also from within the document class. To append to "master", you have to instantiate them first. But if you want to append anything to them from within the IDE timeline frames, you need to reinstantiate them and thus loose all of master's inherited properties – for instance, useFrames. This means that Timelines are made to act as modules, so... you can't just control them globally, regardless of appending-by-frame? Thanks, as always.
  5. Hello, Is it possible to "extend" the TweenMax class, in order to add some customized functions? Suppose I have this function, toLine():TweenMax, that returns new Tweens according to different data that is manipulated dinamically within reach of the Document class (or perhaps an instance of another class). var t:TimelineMax = new TimelineMax(); t.append(TweenMax.toLine(movieclip, somevariable, someothervariable)); Is this at all possible using OOP? Or am I just daydreaming? Thanks a lot, any pointers appreciated.
  6. Eternal gratefulness to you, I just wanted to add my own (obtuse) way of dealing with the inherent limitations of this callback method, i.e. no parameter availability, in order to reuse the onChangeRatio plugin for different tween instances: var pic:Picture = new Picture(); doTween(pic, 24, true); doTween(p:Picture, delay:int, frame:Boolean):void { var tween:TweenLite = new TweenLite(p, delay, {useFrames: frame, x:500, onChangeRatio: function() { trace(p.x)}, ease:SteppedEase.create(12)}); } Hope this helps.
  7. I was about to change my last message as I've been experimenting with the "ratio" property. I did settle for something similar to your proposition. I've been checking your plugins with the hopes of writing this onChangeRatio feature myself, but I'm afraid of ruining your architecture with my absolute lack of proper knowledge. I'll be checking here if you end up writing this plugin, for the sake of others as well, but I understand of course that you are now busy, end of the year, etc. Thanks anyways for your permanent willingness to help, and to solve. Good luck.
  8. I had already tried this method of relying on conditional comparisons on some MovieClip's position, but the thing is, sometimes you are not tweening coordinates but other properties. I see two alternatives to this, unfortunately, intentional behaviour: a – Using some kind of "property changed" Event but this is way out of my actual knowledge, anyone knows of custom events running around the web? b - Using the "ratio" property as mentioned, but this might seem a little too complicated for determining frame intervals, always requiring by-frame divisions, modulo operations, rounding, etc. I see this as overkill, but perhaps I didn't really understand what you mean, Greensock, by saying that I could I say this because, of course, this property changes in tandem to frames, so we go back to the beginning of alternative b. Please clarify this point, if I didn't understood correctly. Thank you very much...
  9. Hello again... I think I found the first bug working with SteppedEase. Let your .FLA have 24 frames per second, you have your mc on stage and you want it to move once every 3 frames (24 * 3 = 72) TweenMax.to(mc, 72, {x:250, useFrames:true, ease:SteppedEase.create(5), onUpdate:onUpdate}); function onUpdate():void { trace("this is not your 3-frame interval"); } Clearly, the onUpdate function is being triggered by frame changes and not for every 3 frames – in other words, it is not being triggered when mc changes x position. I suppose this happens if you are actually using the Timeline within your .FLA, Any thoughts?
  10. Don't know how to use the SOLVED label, but this is solved. Thanks.
  11. Thanks a lot man, this is exactly what I was looking for. I think these type of features give extra credit to your engine, as a highly robust system grown out of the simple need for transitioning (as opposed to strict tweening). As for me, this is the reason why I end up coming back to yours, anyways, great support and responsiveness BTW – just like with the other special, RoughEase.
  12. Yes, you got it. Steps is a nice way to put it, as something opposed to transition ramps. In my case, I'm more interested in frame-based updating than seconds, but yeah, something like what you describe in your formula is right up with what I thought. Will be checking then...
  13. In line with my most recent question... I know that whenever you define a LinePath2D, each point in an array is joined with the last point in order to create one single line. This is typical of a vectorial-style drawing. Is it possible to set a discontinuous path, like in my picture, where 1, 2, and 3 define different trajectories that form a single path? In this way, whenever a shape finishes a line, it is immediatly 'teleported' to the next line. I reckon you can do this with Timelines, but perhaps this is not the best way, if at all... Thank you very much, and congratulations for your engine.
  14. Thanks for your quick response... I've posted three pictures representing different times. You've got a 10 x 10 grid (could be boxes or pixels, it doesn't matter) and one square shape. I want to be able to define paths with your TweenMax engine and make my shapes follow them, but on a frame schedule and without transitions. For instance, define a path that has points in (0,0), (0,1) and (0,2). I want my square to move through those points as you'd see in those pictures, no transitions, just basic positioning per frame; in this particular case, per 3 frames. Is this possible to do with TweenMax without too much overkill?
  15. Hello TweenMaxers, This one is written specially to mr. Greensock himself as this is a very peculiar question... I know this is kind of absurd since Tweens are used to give a sense of fluidity to motion, but I was wondering if there was some alternative in TweenMax in order to NOT give easing to motion. Say, in a 10x10 grid you want to move from (0, 0) to (0,9) by only passing through the slots in the grid (a la Tetris), without 0. to 1. transitions. Is this possible to do with TweenMax? For instance, tell a square movieclip to move from (0,0) to (0,9) in 3–frame intervals? I know this is silly, but I don't want to lose all the TweenMax functionalities. I'm thinking about the excellent LinePath2D, which allows me to move shapes along each point and saves me much time... Thanks everybody,
×
×
  • Create New...