Kyatric's Forum Posts

  • Laura made a tutorial course on building a turn-based battle system in Construct : construct.net/en/courses/building-turn-based-battle-64

    And she has been working on a RPG and talked about it in length in her blog articles : construct.net/en/blogs/construct-stream-companion-80

  • Possibly the layers do not have the same coordinates/parallax values.

    So Touch.X and Touch.Y coordinates actually end up being out of the visible screen.

    You could confirm that using the debugger.

    Also, apparently you are touching a TiledBackground object and moving your Sprite to the same layer. It is possible that in the Z order, your sprite is beneath the TiledBackground, and so "invisible" because of that.

    Play with the Z order to make the Sprite appear in front of the TiledBackground.

  • You have to make sure that when the player fails, they fail because of their own mistake or (lack of) skills.

    Meaning, the controls have to be perfectly responding, so that the player will not be frustrated because of confusing or badly responding controls for example.

    Likewise for any other mechanic in the game. It has to make sense, be clear and not be lacking in any way.

    Players should feel they lost due to a failure of theirs rather than to "unfairness" of the game/design.

    At last, if player "rages", unplug the screen and device they are using and send them outside get some fresh air instead of putting themselves through an experience that causes them such emotion :/

  • You could

    clamp((Overheat / 6) * (WeaponLevel - 100),0,YourMaxValue)

    To make sure the first part of your formula will always be positive, since a negative number there will trigger the NaN response.

  • If you just want your browser to download a distant PDF or Doc file, use the Browser plugin and its action "Invoke download".

    If you mean that the data for your exercise is in PDF or doc format and you want to load them into your web app, you could load up the content of the file using the AJAX plugin.

    But concerning parsing those file format into data that you can use from within Construct, there isn't standard plugin that will help you with those.

    Especially since these are proprietary formats.

    You should rather look into JSON format and the JSON plugin for that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Go to same layout and Restart Layout should work the same indeed and execute "On start of layout".

    Checking in "On start of layout" for the value of a boolean and loading different data as a result sounds like a good way to handle two "loadings" of the same layout depending on some context.

    Make sure to use two sub-events to your "On start of layout" event. One checking if your boolean is true or false (accordingly to your setup), the other one being a "Else" special system condition.

    You also have to pay attention on your "restart", if some global variables value need to be reset or not, you might want to do this manually before the restart.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Perhaps. Does it contain a c3runtime version ?

    Do you encounter the same issue if/when uploading the HTML5 export to another server than itch.io ?

    Our bug report guidelines requires for the project to not contain third-part addons, to make sure it is a bug with Construct itself.

  • You do not have permission to view this post

  • I haven't uploaded a game to itch.io in a while, I do not remember if there was a specific export to use.

    I also notice different errors when executing the game in Firefox.

    This possibly could be worth a bug report, to either (or both) itch.io's support and to our github.

  • The .asJSON expressions generally deal with the content of a data structure type of object (array, tiles, dictionary...).

    The instance variables are part of the object type, not the content of the current instance of the object.

    If you want to save the values of your instance variables, you would likely have to save them in addition to the .asJSON value, on their own.

    You could serialize your own string.

    For example:

    myFullString = array.asJSON & "¤" & array.variable1 & "¤" & array.variable2

    When you want to load the information from 'myFullString' into the array, you would use the tokenat() system expression.

    array action load : tokenat(myFullString,0, "¤")

    Set array instance variable : variable 1 = tokenat(myFullString,1,"¤")

    Set array instance variable : variable 2 = tokenat(myFullString,2, "¤")

    Here, the separator "¤" is a character that likely will not be used in the asJSON content and/or instance variable value.

    If you want to save the state of an object, use the dedicated system action : construct.net/en/make-games/manuals/construct-3/system-reference/system-actions

    This will save the content of your object, as well as its instance variables.

  • Hello.

    There is a dedicated example in the start page of construct about level selection, locking/unlocking :

    editor.construct.net

    Also, since you already have a topic on the subject, please don't open other topics on the same subject.

    One topic is enough, and keep your discussion to a single thread on a subject.