dop2000's Forum Posts

  • Oh, sorry, that was my mistake - it works correctly with "Start from current". With "Start from last recorded" it resets scale to 1.

    So it looks like everything is working correctly now, thank you so much! I'm migrating a big game to C3 and this bug was causing serious problems for me.

  • Yes, that event from your screenshot works in Construct 2. But if you can't fix it, it's not a problem, I can always re-initialize the tween.

    The last version works much better, thank you!!!

  • You can try something like this:

    variable t = When I arrive home, [color=#21a6ff]first I wash my hands[/color] with [color=#21a6ff]soap[/color] and water
    
    Set t to replace(t, "[/color]", "[/color] ")
    Text set text to t
    

    Where the space at the end of "[/color] " string is not the real space, but one of the invisible characters from this website:

    emptycharacter.com

    (scroll down and copy/paste one of the characters from the table)

  • Try this:

    X: OriginalViewportWidth/2+(1250-OriginalViewportWidth/2)*0.3

  • You can also create "back" at these coordinates:

    X: (1250+OriginalViewportWidth/2)/2

    Y: (350+OriginalViewportHeight/2)/2

  • In this case I guess the easiest solution is to temporarily set scroll to "fore" object, create "back" object with those expressions, and then set scroll back to the player.

    Edit: just tested and it works.

  • Physics is a complex plugin and it's impossible to guess what the problem is without seeing your project file.

  • Eren Sorry, I think it become even worse. There are more problems now, I added 4 different tests, take a look:

    dropbox.com/s/dsuy04h8qggnltv/Litetweenbug2.c3p

  • If you change X coordinate for both objects to something like 150, you'll see that they are aligned at the moment of creation.

    But since you are creating them at x=1250, when character moves in their direction, it takes twice the distance to get to the "back" sprite, because it's on 50% parallax layer.

    If you want these objects to always be aligned, you need to adjust "back" position on every tick. Or simply place it on layer with 100% parallax.

  • Eren Looks like it resets object scale to 1 at the start of the tween. So, for example, tweening from scale 1 to 0.5 works fine, but tweening from 0.5 to 1 doesn't work. Here is a demo project:

    dropbox.com/s/qtspohuvnwuymb0/Litetweenbug.c3p

    (it's converted from C2 where it works correctly)

  • Eren I noticed that tweening Scale parameter doesn't work in your ported version for C3. When you have time, could you take a look please?

  • For example go into the current C3 Doc and type "Set Color", you will literally find nothing

    This is odd, I found it straight away:

    construct.net/en/make-games/manuals/construct-3/plugin-reference/common-features/common-actions

    I prefer using google when searching for something here, for example:

    "set color" site:construct.net inurl:manuals

  • jobel No, replacing each object manually would be an enormous task.

    I edited .caproj file as described in this tutorial. Make sure you have "SpriteFont2" plugin listed in <used-plugin> section of the file (this is the native spritefont plugin from Scirra).

    Then all you have to do is open the project in C3, right-click each spritefont object, click "Select all in project" and add spacing data on the left panel.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use LayerToCanvasX LayerToCanvasY CanvasToLayerX CanvasToLayerY expressions.

    For example, to convert X/Y coordinates from layer "A" to layer "B":

    newX = CanvasToLayerX("B", LayerToCanvasX("A", x, y), LayerToCanvasY("A", x, y))

    newY = CanvasToLayerY("B", LayerToCanvasX("A", x, y), LayerToCanvasY("A", x, y))

  • I also had to migrate a big C2 project to C3, and because I used an old version of SpriteFont Generator, I didn't have spacing data in new format. So I created this small conversion tool, maybe it will be useful for someone else:

    dropbox.com/s/d5y7v7wskkabuxq/SpriteFont_convert_spacingdata.capx

    It converts from this:

    {""c2array"":true,""size"":[2,13,1],""data"":[[[24],[34],[41],[43],[51],[52],[53],[54],[55],[57],[58],[64],[66]],[["".,""],[""-""],[""1""],[""+""],[""2""],[""7""],[""3""],[""5""],[""49""],[""8""],[""6""],[""0""],[""x""]]]}

    to this:

    [[24,".,"],[34,"-"],[41,"1"],[43,"+"],[51,"2"],[52,"7"],[53,"3"],[54,"5"],[55,"49"],[57,"8"],[58,"6"],[64,"0"],[66,"x"]]