lunarray's Forum Posts

  • jayderyu

    I see, that was a very terrible bug on my side, I was looping the tweens with a wrong iteration variable... and copying the wrong litetween on the wrong directory.

    But this one should be fixed, I even attached a copy of setting "all" on every action with this capx.

    Fixed capx

    Kenney

    I think it is not a bug and has something to do with Enforce and Compromise mode. I will try to make a post about compromise vs. enforce after this.

    Try setting it to Enforce. If you could provide me with capx, I might be able to look more into it...

    I set the newest litetween (just uploaded one), now it is set with enforce mode defaulting to Enforce instead of Compromise.

  • jayderyu

    Thanks for trying it out. I was planning to fix it all at once and make a proper demo (kinda like a documentation in form of a demo), but i got distracted with things irl...

    As for initial or target string, it currently accept these types:

    "current": The current object's opacity, angle, or position depends on the context. This is replaced by the said value when the tween is created, not when the tween is played. Example: tween got created when the object is at (120, 30), current will be replaced with (120,30) when it is first created.

    "relative(x,y)": where x, y is relative to the current position, angle or opacity. It can accept negative value. Also, this one got replaced with the said value when the tween is created.

    example: "relative(-10,100)"

    "x,y": the x,y coordinate of the target or initial string. Depends on the context of the tween, it can also accept single value as in "100" for opacity etc.

    About tween name, it accepts "all" just fine here, even for the set target too. Could you provide a capx for it?

    The special tween name would be "default", "all", "earliest" and "furthest". It depends on the context.

    "default" is the default tween which property is changed in the IDE. It is not really a special one though. It's just a tween that got named "default" and got created when we include the behavior.

    "all" means that you target all the tween in the behavior at once. It works in almost all of the action (except set parameter/create tween for kinda apparent reason :(, will fix that up later).

    "earliest" and "furthest" are captured only on progress checking, because it didn't make sense in other context.

    PS: There are some bug fixes happening when I made this post, please update it to the latest behavior. Thanks :>

  • Posted a fix for problem that only got caught just now...

    1. It ignores enforce mode and always stays in compromise mode.

    2. Restarting and setting initial problem fixed.

  • I moved out all kind of playmode off the tween behaviour, so all things like ping pong, play once, etc has to be done on the event sheet now...

    For ping pong, we just need two condition

    On tween "default" end > Reverse from end "default"

    On tween "default" reverse end > Start from beginning "default"

  • Retiring the old EaseTween, going to LiteTween route instead... please check 1st post...

  • JKID

    I just noticed that, i forgot that C2 stored opacity as 0 to 1 value, so i ended up not multiplying it by 100. It is now fixed btw. And thanks alot for giving bug reports. :)

    EDIT:

    Here it is, the fixed behavior... If nothing is wrong anymore, i'll deem it stable and put it on to replace easetween.

    LiteTween

  • JKID

    Ah yes, I forgot to implement the opacity tween O.o, it is now fixed

    About two litetween on same sprite, I have fixed it too...

    Here it is, the fixed one...

    dl.dropboxusercontent.com/u/55358831/lunarray.litetween.zip

    Thanks for helping me test this behavior... :>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try this one JKID, I'm making a new tween behavior. It is still in the experimental phase, but if you don't mind I'll put it here for you to test/use.

    dl.dropboxusercontent.com/u/55358831/lunarray.litetween.zip

    And this is some example on how to use it

    dl.dropboxusercontent.com/u/55358831/helping/litetween.capx

  • I updated the capx with comments. But you might want to ignore that and check the one below...

    Now that I understand what you are trying to make, I guess that capx is not very useful in this case. I make another one which is more straightforward and easy.

    dl.dropboxusercontent.com/u/55358831/helping/click_info.capx

    This one is sure easier to make and you can edit it in C2 instead of having to dwell with a text file. (it only has one event)

    You just need to set a instance variable to the hotspot sprite to any text you wanted...

  • I see, thanks for the clarification Ashley. I missed that R120 release notes...

  • I don't quite understand the question but is it something like this?

    dl.dropboxusercontent.com/u/55358831/helping/sprite_count.capx

  • Sorry, is this what you want?

    1. You want a four or more line of poem in a text file

    2. Then spawn four or more sprite each related to that specific line of poem.

    3. If the sprite is clicked, a textbox would be updated with the line associated with the sprite?

    Edit: Something like this?

    dl.dropboxusercontent.com/u/55358831/helping/poem_sprite.capx

  • Some plugin and behavior do works in mobile, some don't. Since it was contributed by people in the forum, you have to try or read their description. But this TMXImport looked like it will work in mobile, I'm not sure though since I don't use it myself.

  • You first look for the plugin you wanted (in this case TMXImporter), using the forum search

    In this case, TMXImporter is here

    scirra.com/forum/topic49949.html

    After you download the zip/7z file, you extract it and put it in the plugin folder which is

    C:\Program Files\Construct2\exporter\html5\plugin

    After that you restart Construct 2, and you can put TMX importer in the canvas...

    Edit: Oh, and the manual entry for installing addons is here

    scirra.com/manual/158/third-party-addons

  • There are several ways to do this, if you are okay with plugins, then you might want TMXImport plugin, it works exactly like what you need.

    The other way would be to use For, loopindex and Array (to store tile data) in eventsheet then create the tiles from event.