PabloDev's Forum Posts

  • I use the underscore for the name of the constants.

    It is a very common normal.

    They should try to solve that problem.

    Also in C3 it works fine.

    For normal names I use camelCase, although in the example I did not.

  • If you have some variables with the same name but some use an underscore, you cannot refer to the variable that does not use an underscore, for example, if you have these variables:

    name_player

    name_room

    nametest

    The automatic reference works with the first two variables but will not work with "nametest".

    To solve it you will have to add a hyphen to "nametest":

    name_player

    name_room

    name_test

    Another option is to eliminate the low hyphens of the other variables to do so:

    nameplayer

    nameroom

    nametest

    In this gif (gif with scroll bar) you can see how the reference does not work with "nametest"

    CAPX

    https://www.dropbox.com/s/nrbo9zy8n9n02py/testVariablesNames.capx?dl=0

    VERSION C2

    R270 64b

    Win10 64b

  • Ok, the key function is mid.

    Thank you.

  • Hi, please, how do I go through each character of a string variable?

    I don't know what function I should use, I can't find any built in function that allows me to get a character from a string by setting a numerical index in its parameters.

  • You do not have permission to view this post

  • That's how it works:

    What happens is that the OR is true because t> = 5

    Then the dictionaries are rejected, then you must reset the list of collected dictionary objects to re-select a dictionary in the subblock.

    I am not entirely sure but I think I remember that is the reason.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I got this but ... I'm not very happy with the results.

    There are two modes:

    1 - character

    2 - jellyBlock

    Set the global variable for a mode and then execute.

    Unable to change in running mode

    https://www.dropbox.com/s/kwdqonxlns7lqij/efectoReboteSalto.capx?dl=0

  • Hi, does anyone know how bounce animations are made?

    I refer to the animations that appear in many games in which an object contracts and stretches, this happens for example when it falls to the ground.

    You must manipulate the height and width of the graph but I do not know what formula to use.

  • In addition, the action of modifying an effect parameter is not automatically eliminated.

    As you can see in this image, the layer has no effects but the action continues to refer to the effect that the layer previously had.

  • You mean there is no bug?

  • and what happens with the rest of the students?

  • I tested your capx file

    With NWjs works good

    Chrome not work

    Edge not work

    Firefox not work

  • Hello, have you read the documentation ?.

    Maybe you're doing something wrong.

  • You mean the "AvailableDirections" array?

    You have this array configured as "Global = No"

    So, you have to create this array in each level, in the "On start of layout" event you will have to use "Create object" and create this array object.

  • Hello, I was testing the timeline and this error appeared with R157

    Error report information

    Type: unhandled exception

    File: editor.construct.net/r157/components/bars/timelineBar/timelineBar.js, line 1, col 6808

    Message: Uncaught TypeError: Cannot read property 'setAttribute' of null

    Stack: TypeError: Cannot read property 'setAttribute' of null at a.ǃOQq (https://editor.construct.net/r157/components/bars/timelineBar/timelineBar.js:1:6808) at a.ǃESt (https://editor.construct.net/r157/components/bars/timelineBar/timelineBar.js:1:4417) at a.e.ǃEGm (https://editor.construct.net/r157/components/bars/timelineBar/timelineBar.js:1:10248) at ǃp.ǃEh.ǃLk.ǃEmC.ǃau.ǃEYa (https://editor.construct.net/r157/components/bars/timelineBar/timelineBar.js:1:8727) at ǃp.ǃEh.ǃLk.ǃEmC.ǃau.ǃEYe (https://editor.construct.net/r157/main.js:2:492602) at ǃp.ǃEh.ǃLk.ǃEmC.ǃau.ǃEdC (https://editor.construct.net/r157/main.js:2:506195) at ǃp.ǃEh.ǃLk.ǃEmC.ǃau.ǃEdF (https://editor.construct.net/r157/main.js:2:505367) at ǃp.ǃEh.ǃLk.ǃEmC.ǃau.ǃEdj (https://editor.construct.net/r157/main.js:2:505920) at ǃEda (https://editor.construct.net/r157/main.js:2:502624)

    Construct 3 version: r157

    URL: editor.construct.net

    Date: Tue Jul 09 2019 13:15:40 GMT+0200 (hora de verano de Europa central)

    Uptime: 740.1 s

    Platform information

    Browser: Chrome

    Browser version: 75.0.3770.100

    Browser engine: Chromium

    Browser architecture: 64-bit

    Context: browser

    Operating system: Windows

    Operating system version: 10

    Operating system architecture: 64-bit

    Device type: desktop

    Device pixel ratio: 1

    Logical CPU cores: 4

    Approx. device memory: 4 GB

    User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36

    C3 release: r157 (stable)

    Language setting: en-US

    WebGL information

    Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium)

    Numeric version: 2

    Supports NPOT textures: yes

    Supports GPU profiling: yes

    Supports highp precision: yes

    Vendor: Google Inc.

    Renderer: ANGLE (NVIDIA GeForce GT 440 Direct3D11 vs_5_0 ps_5_0)

    Major performance caveat: no

    Maximum texture size: 16384

    Point size range: 1 to 1024

    Extensions: EXT_color_buffer_float, EXT_disjoint_timer_query_webgl2, EXT_float_blend, EXT_texture_filter_anisotropic, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context