[Behavior] LiteTween

  • California

    Something like this?

    Size tween

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Looking good Lunarray :), feels more intuitive :)

    Anyway you can add also a pure position XY version of the target. Though, maybe it's not needed. However, it would make a fantastic moveto as part of LiteTween :)

    Also as a suggestion. If only a single Target X or Y is set. When doing a Start. The system should by default use the current X/Y.

    As it is now. I set my sprite by the normal position set(600, 800)

    object.litetween.setTarget(X, absolute, 400).

    object.litetween.start

    What happens is that my object will move to X400, but also go up to Y0. If I'm using only a single position target, I would assume that the other position vector won't be affected.

    I'm liking LiteTween a lot :) it's great. I'm sorry, but I'm already using it for production :P so I will have to suffer the changes :D

    Also I think keeping the create/inialize version for an entire package version is a good idea. Maybe add a comment that it's a more complex version?

  • Exactly, thanks!

  • Any way to make it work for textboxes?

  • lunarray

    Some updates. I need to use "Set Tween Proprty" before being able to use SetTarget"

    If I use SetTarget and specify any of them. Then by default that should be used. right now I need to

    set tween property height

    set target height (relative) value

    Suggestion

    is there a repeat option? once an animation type start. it would be fantastic to have an option for it to continue until otherwise specified.

    suggestion

    you might want to change "duration" to "animation time". I for some reason thought "duration" was the total length of duration while trying to get an obect to pulse :D

    bug

    the reported value for duration is {1}, I think it is supposed to be {0}. I don't see the duration amount I see {1}

  • jayderyu for repeat use a simple "system: every X seconds". Check the SizeTween .capx that lunarray posted in page 17.

  • Could you please summarize. I don't use beta's most of the time. the sample is in r135, i'm still lingering on 132.

  • This is just lame <img src="smileys/smiley36.gif" border="0" align="middle">

    My Lerp Buttons:

    <img src="http://imageshack.us/a/img819/3166/mylonglerp.png" border="0">

    Buttons with your EaseTween:

    <img src="http://imageshack.us/a/img684/5782/tweenbuttonsftw.png" border="0">

    And Consider that my Version does not even apply any effects !

    Here are the lerp buttons I made without LiteTween. There's only 4 buttons!

    Demo

    Capx

    <img src="https://dl.dropboxusercontent.com/u/20299415/capx-forum/Pictures/lerp-button.png" border="0">

  • California

    But I though it should work too for Textbox. Though maybe there are some quirks happening since textbox is a DOM element.

    jayderyu

    I just found that set duration {1} bug. Fixed it, I'll post it later on.

    As for repeat action, that would be like slowly evolving litetween and bringing back easetween again. One of my reason of making litetween is making it simple. For that I get rid all of the playmode and move it out to event sheet. It does cost more events that way, but well, more C2-ish.

  • Could you please summarize. I don't use beta's most of the time. the sample is in r135, i'm still lingering on 132.

    there ya go

    <img src="https://dl.dropboxusercontent.com/u/23009908/construct_forum_uploads/litetween_size.png" border="0">

    https://dl.dropboxusercontent.com/u/23009908/construct_forum_uploads/litetween_size.png

  • > This is just lame <img src="smileys/smiley36.gif" border="0" align="middle">

    >

    > My Lerp Buttons:

    >

    > <img src="http://imageshack.us/a/img819/3166/mylonglerp.png" border="0">

    >

    > Buttons with your EaseTween:

    >

    > <img src="http://imageshack.us/a/img684/5782/tweenbuttonsftw.png" border="0">

    >

    > And Consider that my Version does not even apply any effects !

    Here are the lerp buttons I made without LiteTween. There's only 4 buttons!

    Demo

    Capx

    <img src="https://dl.dropboxusercontent.com/u/20299415/capx-forum/Pictures/lerp-button.png" border="0">

    Schoening you could simplify and tidy your code using functions, params, families and subevents:

    i.e.:

    UPsprite on click

    -- subEvent1: Is overlapping Top: functionSetCamera(param0 localVar CameraY 519, param1 lerpSide=1

    -- subEvent2: Is overlapping Bottom: functionSetCamera(param0 localVar CameraY 519, param1 lerpSide=1

    and in functionSetCamera:

    DownSprite setActive to False

    UPsprite setActive to False

    etc

    etc

    hope you get the idea.

  • lunarray

    Well personally. I think just polish it up, fix any bugs. Then it's done. Though a ping-pong setting would round it out. Past that It seems LiteTween for tweening looking really good :)

  • Small fixes for annoyances posted...

    Also removed old litetween zip.

  • Hi

    Im using C2 136 and get this error on startup

    <img src="https://dl.dropboxusercontent.com/u/22406377/Tween.jpg" border="0" />

    /Flemming

  • Looking good Lunarray :)

    As a small suggestion. Can you please have it

    LiteTween Set duration {0} seconds.   or {0}/sec

    It's not a bug or anything, just a reading thing :D it's such a nitpick too. I feel bad for asking. It just feel's to have a lack of flow.

    anyways, great plugin on of the best :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)