mekonbekon's Forum Posts

  • You can also attach the tween behaviour to the font and assign the font size to a tweened value:

  • In event 4 you are setting the value at 0,1 to number rather than the cell linked to the name value.

    Also, you could run into trouble later if you have events 3 and 4 in that order as in event 3 you add the name to the axis and then immediately after in event 4 you check for the name.

    Instead, you could use something like this:

    The else statement makes sure you only run one of the conditions. I've added a stop action to the loop to prevent unnecessary searching of the entire array once you've found the first instance of the name; if you want to search the entire array for every instance of name then remove the stop.

  • I've created sliders for the audio FX (phaser, flanger, distortion etc) and would like to apply some max/min values for the various parameters; does anyone have suggestions for these or know of a good reference that I can crib from? I've had a hunt around for some guidelines but haven't found anything definitive.

  • Apologies if I've misunderstood what you're asking for, but here's an example with three different functions for adding the time & date:

    dropbox.com/scl/fi/g7otdepgvcqf4sl0gzwuz/Daily-Platime-Catcher-Revised-2.c3p

    Repeat1: Only adds a new entry if the date is different to the last entry.

    Repeat2: If the date is different a new entry is added, otherwise it overwrites the time of the last entry.

    Repeat3: Always adds a new entry even if it's the same date.

    If none of these are what you're looking for please explain in more detail and I'll give it another go.

  • I tried uninstalling and reinstalling as you suggested, with just editor.construct.net - I also removed the associated data at the point of uninstalling. I'm still getting the update prompt.

  • Here you go:

    dropbox.com/scl/fi/bd0skr9fh4hojaixnexsp/Daily-Platime-Catcher-Revised.c3p

    I've added comments into the project to describe the changes.

    One thing to note that isn't commented, your array only had one Y column so I set its initial dimensions to (0,2,1).

  • It's because you're pushing on both the x and the y axis - you only need to push the time on the x and then set the value at 0,1 to the date:

    Array_Daily_Playtime Push front Current_time on X axis

    Array Daily_Playtime Set at (0,1) to Today_date

  • Ashley I've installed it as an app, so don't see the address bar, but if I copy the URL or open in Chrome from the app I get editor.construct.net as the URL.

  • Every time I open Construct I'm presented with the following:

    I accept the update each time but the next time I open it's back again.

    Does anyone know why this is and how to fix it? I'm on Windows 11, using Chrome, and have Beta releases selected.

  • You're welcome, no coffee needed :-)

  • Do mean something like this?

    I added a sprite called "camera" and gave it the Scroll To and Bullet behaviours, then set it off travelling up the layout.

  • Does this work for you?

    I've assumed the following:

    1. If all of the boxes marked onteam have >=1000 coins then all of those boxes should have their coins added to total_coins, and their indvidual boxes.coins value set to zero.

    2. If only some of the onteam boxes have coins >=1000 then none of the onteam boxes should have their coins transferred.

    3. Boxes that are not onteam should not have any of their coins transferred regardless of whether they are greater or less than 1000.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, you can do this with hierarchy. Add A as a child to B and disable "transform angle".

    Thought I'd already tried that - evidently not! Cheers :-)

  • Hi,

    I was wondering if there's a way to pin object A to object B at an X,Y offset to B's origin and have the offset respected when object B rotates?

    e.g. a health bar pinned to a top-down enemy: the health bar is at 0,-32 relative to the enemy's origin; if the enemy rotates 90 degrees clockwise it should remain at 0,-32 not move to 32, 0.

    I've tried using the pin behaviour and hierarchies but in both instances A changes its position as B rotates.

    I'm currently repositioning A every tick, which works. I could add a blank sprite to the container and pin both the A and B to that, but was interested if there were any techniques using existing behaviours that didn't involve adding in an additional sprite.

    Tagged:

  • You can use the Advanced Random plugin to create a probability table.