tcamacho's Forum Posts

  • Hi, I'm making a game where the enemies need to chase the player. The enemies have solid and 8 direction behavior. But when I have a lot of enemies chasing the player they start squeezing each other and then they teleport to the nearest "open" position.

    How do I stop that.

    I have one project that i was working on a week ago.

    Then i started to work on another project so i created a new one and i let this one saved on my drive.

    Today i tried to open the project and this error appears.

    And i can't do anything with the project.

    Help plz.

    Thank you in advance.

    Error report information

    Type: unhandled rejection

    Reason: Error: cannot find event variable 'win' Error: cannot find event variable 'win' at window.ǃmMX.ǃLcC (https://editor.construct.net/r189-2/projectResources.js:1:361231) at window.ǃmMX.ǃvd (https://editor.construct.net/r189-2/projectResources.js:1:361091) at window.ǃmPj.ǃLcn (https://editor.construct.net/r189-2/projectResources.js:1:331970) at window.ǃmMX.accept (https://editor.construct.net/r189-2/projectResources.js:1:261453) at e.ǃLcd (https://editor.construct.net/r189-2/projectResources.js:1:298978) at e.accept (https://editor.construct.net/r189-2/projectResources.js:1:261469) at e.accept (https://editor.construct.net/r189-2/projectResources.js:1:297786) at n.ǃLcd (https://editor.construct.net/r189-2/projectResources.js:1:283486) at n.accept (https://editor.construct.net/r189-2/projectResources.js:1:261469) at n.ǃLcd (https://editor.construct.net/r189-2/projectResources.js:1:268807)

    Stack: Error: cannot find event variable 'win' at window.ǃmMX.ǃLcC (https://editor.construct.net/r189-2/projectResources.js:1:361231) at window.ǃmMX.ǃvd (https://editor.construct.net/r189-2/projectResources.js:1:361091) at window.ǃmPj.ǃLcn (https://editor.construct.net/r189-2/projectResources.js:1:331970) at window.ǃmMX.accept (https://editor.construct.net/r189-2/projectResources.js:1:261453) at e.ǃLcd (https://editor.construct.net/r189-2/projectResources.js:1:298978) at e.accept (https://editor.construct.net/r189-2/projectResources.js:1:261469) at e.accept (https://editor.construct.net/r189-2/projectResources.js:1:297786) at n.ǃLcd (https://editor.construct.net/r189-2/projectResources.js:1:283486) at n.accept (https://editor.construct.net/r189-2/projectResources.js:1:261469) at n.ǃLcd (https://editor.construct.net/r189-2/projectResources.js:1:268807)

    Construct 3 version: r189.2

    URL: editor.construct.net

    Date: Wed Apr 22 2020 06:58:06 GMT+0100 (Western European Summer Time)

    Uptime: 41.5 s

    Platform information

    Browser: Opera

    Browser version: 67.0.3575.137

    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: 12

    Approx. device memory: 8 GB

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

    C3 release: r189.2 (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 (AMD Radeon RX 5700 XT 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, KHR_parallel_shader_compile, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, OVR_multiview2

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley Omg how did i missed that. Than you so much.

  • Hi thank you for your replys, im sorry but i im starting :D

    Fengist The Char and the function is not on the same event.

    Why do i need a parameter? I want to return a value from the function not send one to the function.

    Ashley how can i do that?

    Thank you

  • Hi everyone,

    I'm trying to get a value returned from a function

    This is the function:

    When I go to call it, the Function object doesn't even appear.

    Thank you,