jobel's Forum Posts

  • by models you mean sprite animations?

  • Hello!

    1. "On the version of Canvas + 2.1.0 everything works correctly! Use Cocoon version: 2.1.0 on this versin work!"

    2. "I change to using cocoon version:2.1.0 it’s ok for my project. If using cocoon version:2.2.0–> sound is silent after 2 minutes play game or change to layout. Project export by construct 2 r250"

    3. "i can confirm no audio also in cocoon version:2.2.0"

    how do you use different versions of cocoon? I don't see that option anywhere.. I'm using Canvas+ and for plugins it just says "latest" I can't change it to a different version.

    EDIT: found it! it's in SETTINGS first line: "Cocoon Version" and yes that fixed the problem! So definitely a problem with 2.2.0! the bad part is the developer working on it can't reproduce the problem so therefore is not doing anything about it. I only get 2 project slots so I can't really make a test for him.

  • having same issue. I used Cordova>Cocoon IO for Android in December 2017 for this same project. Everything was fine. The only issue I had was a strange audio bug that would mangle the audio. but the work around was to have "silence.ogg" play Every 1 second. This worked perfectly even if strange.

    I made a few minor updates to my game, I recompiled on CocoonIO when I play the game after about 2 mins the audio shuts of completely. It never comes back. Used Construct r259 Cordova>Android>Canvas+

    EDIT:

    I also have a piece of code that runs On Audio Finished, and that code never runs and the game is stuck. So it's not like the game is just silent but still playing audio, somehow the audio Events/Action are not being executed.

  • Hi,

    In my game iam using the health bar ,it will subtract 20 from health for every 0.5 sec

    when it is decreasing it should decrease smoothly but it is not working smoothly after decreasing health bar showing like a sudden stop for a sec

    can u please tell me how to fix heathbar for smooth movement

    make your health bar a TiledBackground and give it an instance variable and set it to the full width of your sprite.

    then Every Tick (or whenever you change health) Set the width of the healthbar to:

    CurrentHealth / (Healthbar.Fullwidth * MaxHealth)

  • tried Cordova exports with C2 into export manager I get.....

    "Build Failed. TypeError: Path must be a string. Received undefined."

    that's all I get is this simple little notification window. No other info.

    can anyone help?

  • saw this is an old post but this is how you do it a simpler way

    for 2 decimals places: round(x * 100) / 100

    for 3 decimal places: round(x * 1000) / 1000

    etc..

    yeah AmpedRobot if I were you I would definitely ditch C2 and go to a different engine or code your own. That's the way to go.

    First no, you can't change Construct's absolute angles. In Construct RIGHT is always 0 degrees, DOWN is 90, LEFT is 180 and UP is 270. That's just how it was built and all other behaviors and functions reference this.

    Secondly, lerp has nothing to do with Construct, it's a math function. And because of it's nature you never truly get to your destination since lerp is ALWAYS halving the distance, which is why there are so many decimal places. So you need to write code to compensate. i.e. when it gets to a certain point just set it to your destination. You will run into this problem in any language.

    If you feel so strongly about C/C#/C++ I'm not sure why you are using Construct as it is all java based. I suggest you use Unity for C# or create your own custom engine in C++.

  • I don't know the tutorial you are referencing.

    is it this one:

    https://www.scirra.com/tutorials/5367/a ... t-2/page-1

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • you want to use an Array.

    tut:

    https://www.scirra.com/tutorials/307/ar ... -beginners

  • you should use the GiveYourFontsMonoSpace free tool.

    here is tut:

    https://www.scirra.com/tutorials/629/sp ... when-where

  • you just reference them.

    Sprite.Platform.Speed etc....

    Sprite.Pathfinding.Speed etc....

    you cannot reference Solid behavior.

    Generally you would not use pathfinding or solid with the platform behavior since that includes physics, movement, interactions with solids etc..

  • it is somewhat complicated to do this. first, is it a platformer? top-down? what is the movement type you are using?

    There are a few tutorials that go over AI. You need to constantly tell your enemy to move in a certain direction, then change if they get to an obstacle. Depending on your game you could use PathFinding behavior and mix that with the Turret behavior.

  • the viewport has to be "scrolled" in gameplay. You can use the ScrollTo behavior - put it on your player - and the viewport will always follow your player.

    you can also use a System event to Scroll To location... subsequently you can do that Every Tick to player.x, player.y and that would function the same as the ScrollTo behavior.

  • It does have some screenshots (even the array editor does) https://www.construct.net/ca/make-games ... ray-editor

    But, little samples would be awesome!

    I struggled with the array editor too (There's a post somewhere), but the answer is to add a new file under 'Files' (at the bottom of the project list) as an Array. Then you can add rows/columns and data manually.

    After that hopefully everything else will fall into place!

    thanks but I figured it out just fine, I'm merely saying for beginners (and my students) it's not a very friendly system.