oosyrag's Forum Posts

  • You're going to want to use the zeropad system expression to add leading zeroes.

    zeropad(number, digits)

    Pad number out to a certain number of digits by adding zeroes in front of the number, then returning the result as a string. For example, zeropad(45, 5) returns the string "00045"

    For changing a 24 hour format to a 12 hour format, use modulo %, which is the remainder after dividing. Note that "0" should actually read 12 in this case, so you could add a conditional expression

    hour%12=0?12:hour%12
    

    This reads "If the remainder of hours after dividing by 12 is 0, then 12, else the remainder of hours after dividing by 12."

    Adding zeropad to that would look like this -

    hour%12=0?12:zeropad(hour%12,2)
    

    And it is always a good idea to int() or round() to account for rounding errors -

    int(hour%12)=0?12:zeropad(int(hour%12),2)
    

    To determine AM or PM for the hours, divide hours by 12. 0-11 are AM, and 12-23 are PM. You can use another conditional expression -

    int(hour/12)<1?"AM":"PM"
    
  • No plugins that I know of. There are more suitable software alternatives out there for visual novel style or otherwise text heavy games.

    On the other hand, C3 does have much better support for CSS and with the new HTML object. If you're familiar with HTML and CSS, you have can have some extremely fine control over how you want text displayed.

  • Worker mode is a project property under advanced, change "Use worker" from auto to no. Minification is an option when exporting, make sure it is not checked.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't know of any newer plugins.

    Did you try disabling minification and worker mode?

  • You're right, the css selector seems to be broken. Works without a selector though. I'll put up a bug report and see if it's intended, we're missing some syntax, or it can be fixed.

  • What is a registration point? An origin? You can get that with textinput.x and textinput.y and compare how you want.

    Or used the already presented solution of checking collisions and overlap with an invisible helper sprite.

    That has nothing to do with an educational game or not.

  • Just put them on different layouts.

    Note that app stores generally frown upon this practice.

  • How are you determining what file to download?

    Is it a screenshot of your game?

  • That is a large project. What have you tried?

    The basis of interaction is user clicks on an object to gain something. There is the additional requirement of prerequisites that may also need be taken before a particular object is clicked.

  • You're setting the CSS property "textDecoration", which doesn't exist. It should be "text-decoration".

    developer.mozilla.org/en-US/docs/Web/CSS/text-decoration

  • You do not have permission to view this post

  • Some browsers may not support playing audio on start of layout.

    Secondly, you're using file chooser to save the file name that is chosen, but you're not referencing the path of the chosen file anywhere. Then you try to play the name of the file in the app directory, but that file does not exist at that location and naturally can't be played.

  • Are your lines aligned to a grid? You could use pathfinding if they are.

    Are you drawing your lines at runtime? You could create a list of waypoints with whatever input you're using to draw the line in the first place.

    If you have pre-drawn lines in the layout editor, you could manually place waypoints as well.

  • The normal way to do so is to sell your game through a DRM enabled platform like Steam.

    Alternatively, you could also host a server that authenticates license keys, but those are generally easily bypassed as well.

    Edit: It is also very common to have your game free to begin with, but unlock additional content through DLC or IAP.

  • Assuming you're using the old rex plugins, which is no longer really supported, you could try disabling minification and worker mode.

    Probably better to access the newgrounds api directly via javascript.