lunarray's Recent Forum Activity

  • AnD4D

    https://dl.dropboxusercontent.com/u/553 ... n.v1.7.zip

    Hello, can you try this one? I plan to release this later if it turns out stable. It has "Set Easing Parameter" action, you can try setting a and p for elastic tween. For now you can't change the parameter of bounce tween though.

    For now, it is:

    Parameter a and p for elastic

    Parameter s for back

    Parameter t is unused.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Herks

    You can use Sprite.LiteTween.Progress expression for that.

  • resdesign

    Adding variable is one of the best and recommended way to do it (tracking state), or you can use LiteTween's progress state as a trick too.

    This is one simple example using LiteTween progress state. I wouldn't recommend using it for a more complex screen flow where you have branches, etc though.

    https://dl.dropboxusercontent.com/u/553 ... tween.capx

    If you want to do it with the proper way, it is better to use a state machine, or a variable to track that state. But that example works for simpler cases.

  • resdesign

    Left button click fire for all overlapping sprite, in this case when you click on intro, the help below are clicked also eventhough it is being obscured by the intro. That is why both event fired up. You have to keep track of the current state of the UI and handle only the click accordingly.

  • le Canapin

    I don't have time to test it yet, but i have a guess about it. Maybe it happened when the first angle is a bigger number than the target angle. For example, tweening from 245 to 15? It is better to add 360 to the 15 if the target value is bigger from the source value. Could you test it and tell me how it goes?

  • mzeid

    First thing first, EaseTween's ping pong is different from LiteTween ping pong. So, easetween ping pong works by doing tween back and forth, while litetween pingpong reverse the seek bar of the tween. It is easier to differentiate if you see how they work in practice.

    Okay, now for the ping pong stop, you just use ping pong (accessible from the start action), and then add 'On Reverse End' Condition for the sprite (or anything you tween), then put action Sprite.LiteTween.Stop.

    In LiteTween you might end up taking more events to control your tween, but in the end, that is how it should be. EaseTween is more comfortable and powerful, but the idea of making LiteTween is to make is more light, and to delegate all the play control to the even sheet.

  • Zebbi

    It would be so much work and also, it will be a dirty hack to make litetween override the default rotation/angle caveat for all common plugins, even only for Sprite it is already alot of work >.<. I think it is really something that should not be implemented at behavior level.

  • Zebbi

    Ah, now i understand what your problem is. I have one trick that might work, without messing up with the javascript SDK, but it probably won't be a clean simple solution like you want. The trick would be making two sprite, and use one for the jumping 'tween' and the other for the height tween. I'll just post the example capx here, maybe you want to take a look.

    https://dl.dropboxusercontent.com/u/553 ... rigin.capx

  • Zebbi

    Oh, in that case, in construct 2, you can define different origin for every animation or even frame. So you can have center origin for the sommersault animation, while keep using bottom origin for the running, walking and crouching animation. LiteTween would always use the origin instead of ImagePoint, because it is only a behavior attached to something like sprite. The actual rotation is done by the official sprite plugin. It is possible to code LiteTween so that it would override how Sprite rotation behave, but I think it is not good if I override the default rotation provided.

  • Zebbi

    You can set the object origin at the bottom of the sprite (via animation editor > set origin), any height scaling won't affect the sprite's position if you do it that way.

  • Delsetray

    Don't use that one, it's an older version of litetween, use the link on the first post like zenox said.

  • blackant

    Uh, I suddenly realized what you are talking about, forget my earlier comment >.<, just set it to Enforce if you want it to behave like what you stated earlier. The problem with absolute and compromise mode is something that would break alot of things if changed.

lunarray's avatar

lunarray

Member since 12 Jun, 2012

Twitter
lunarray has 6 followers

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies