dop2000's Forum Posts

  • We're talking about a new parameter type, not integrating easing modes to functions???

    I'm not talking about it either. But since you used it as an example, you can have a function which is a wrapper for Tween behavior. It will expect easing mode as a parameter, and this parameter can be enum/list type.

  • It seems pretty clear with the image above

    Your image shows dialog window for Tween behavior, it has nothing to do with functions, that's why I found it confusing.

    Besides easing modes, what other lists do you want to have in function parameters, can you please give a few examples?

  • You probably need Destination Atop mode. Set it for a rectangular sprite with solid color, place on the same layer with the text. Don't forget to set "Force own texture" in layer properties.

    You can check Blend Modes template.

  • Where do I begin..

    By enemy you mean "inimigo1" sprite? It doesn't move because "ação" instance variable is empty. You need to set "direita" or "esquerda" value, and then it will start moving.

    You have some sprites facing left, some facing right. It's recommended to have all sprites facing right (0 degrees).

    And finally, your animations. They are insane! ini1Exp sprite alone is 13MB. Why not do the same effect with particles?! Each of 4 Player sprites have 300 frames for just walking animation! Your game is already using 2GB of memory for images and is very slow. You will soon not be able to run it if you continue like that. You need to reduce the amount of graphics significantly!

  • Are you talking about Function parameters?

    Do you mean predefined lists with fixed values (for example, color names, blend modes etc.)? Or custom lists, where you enter values yourself (for example enemy types)?

    I can see how custom lists may be useful in some cases. Say, when you are calling "SpawnEnemy" function, instead of typing "zombie" in function parameter, you can select "zombie" from the drop-down list. However, there is a serious problem - you will lose the ability to enter expressions in this field, for example choose("zombie", "vampire").

  • — loopindex is an expression:

    construct.net/en/make-games/manuals/construct-3/project-primitives/events/expressions

    You can enter (type) expressions in any parameter dialog. For example, if you have a Text object, you add an action "Set text", there will be a dialog with an empty string, where you can type loopindex.

  • Change text box type to Textarea. But this will make it multi-line.

    Or you can try doing this with CSS:

    stackoverflow.com/questions/12355557/how-to-vertically-align-text-in-input-type-text

    construct.net/en/tutorials/css-your-buttons-and-textboxes-818

  • Set high values for acceleration, deceleration and rotate speed in Pathfinding properties.

  • You can only align by edges. If you need to align centers, simply set the same X coordinate for all selected objects, leaving Y empty.

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.