oosyrag's Forum Posts

  • Found an old example I had made before and updated it a bit.

    dropbox.com/s/hqld8aj1we5h0yy/TiledPathfindingExample.c3p

  • If you have the menu and player in a container, they will be picked with each other. Then you can keep the menu pinned on the player, and toggle it's visibility when you need it.

  • The array expression Array.AsJSON will give you the array as a string in JSON format.

    I'm not familiar with uploading to a server. Depends what kind of server you are using. If the array isn't too large I imagine you could use a POST link to a php page with AJAX object, and the server can save it to a mysql db.

    Or if you're using something like firebase the plugin can probably send data directly.

  • For x from 0 to (array.width-1)

    Array.At((array.width-1)-loopindex) would go from back to front.

  • Would it be reasonable to group all triggered conditions at the top when selecting conditions?

    I think it is fairly safe to say that best practice involves all events being triggered whenever possible, so this change would put emphasis on using triggers.

    Also, once a trigger is added to an event, other triggers no longer appear on the list. By grouping them together, the relative position of the remaining non-trigger conditions gets preserved and is more consistent. Sometimes I'm scanning down one side the list for a particular condition, but it was actually on the other side because the position changed after triggers are removed.

    It would also be more obvious that triggers have been removed from the list.

    This probably falls into the lots of work for little benefit category, but just wanted to throw it out here for discussion and see if it might have negative impact to workflow for others that I didn't think of.

  • Alternatively, clamp(0,self.x,960) should result in the same thing for this case.

  • On trigger-Tween value between 0 and 100 over x seconds

    While tween is running, set css opacity to object.tween.value.

    Or maybe it was 0 to 255, I forgot the range for opacity/alpha in css.

  • The text input object is an html element and doesn't play by the same rules as normal objects.

    You can achieve the desired result by styling the text box with css. There is an opacity property in css you can adjust by utilizing tween - value with it.

    Or you can make your own text input.

    construct.net/en/tutorials/own-textbox-459

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Depends on what movement type you end up using. Also depends on if the ball object is doing the moving across the layout or if the obstacles are.

    Generally speaking you could use an invisible "camera" helper that has the scroll to behavior on it, and have that move towards the desired x position every tick.

  • Don't mix physics with other movement behaviours to avoid issues like this.

  • You can paste a sprite across two drawing canvas objects and move them separately afterwards.

  • If you're making a tiled game, you should probably use tiled movement to move. You can use the pathfinding behaviour to generate the path, but use tiled movement to do the actual moving.

  • Use a global variable instead. Global variables persist across layouts.

  • Some things to try include seeing if it works with another browser, an uploaded exported project and,/or an nwjs export.

    There may be discord settings to look into as well that may determine what audio gets streamed or not.

    You could also file a bug report, following the guidelines. You'll be more likely to get a developer response that way, whether it's a C3 bug or chrome issue or even if they can't do anything about it.

  • Use an instance variable, not a global variable. Each instance of the object will have it's own variable for their own life.