oosyrag's Forum Posts

  • Set text to - Var1 & "text string" & var2

  • I messed around with this some more, and I found the tween behavior actually has a color property you can use. So this can be done with just one event and no additional variables.

    + System: Every 2 seconds

    -> Sprite: Tween "" property Color to rgbEx(floor(random(101)),floor(random(101)),floor(random(101))) in 2 seconds (Default, destroy: No, loop: No, ping pong: No)

    I also updated the example file with it in the Layout 3.

  • Awesome, thanks!

  • That's unfortunately clunky. Guess manually setting three variables when using colorvalue to set color is the cleanest way for now.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For a given angle θ and a circle of radius r and center (h,k), recall that we can determine the Cartesian coordinates (x,y) of the point on the circle determined by θ and r, where

    x=h+rcosθ , y=k+rsinθ

    Since you don't care about radius in this particular application, it would be

    x=self.x+cos(a)

    y=self.y+sin(a)

  • It is likely blocked. After all your game might not be the only thing open in a user's browser.

    Why do you need a quit button? A user can leave the website by closing a tab or browser on their own. If you insist, maybe a button to return to the title screen would be appropriate.

  • Is there a reverse function for the following expressions?

    rgbEx(r, g, b)

    rgbEx255(r, g, b)

    rgba(r, g, b, a)

    rgba255(r, g, b, a)

  • You can use tween to changes values over time, on a color adjustment effect.

    You'll need to specify if there is a target color or just random.

  • Looks like you can use a regular curve and apply some 1d perlin noise to it.

    Again you'll need to define either a min/max range or a maximum rate of change.

    Since you're using a formula/procedurally generating the temperatures anyway, might as well do it for the whole year in one go. The coolest temperatures in winter and the warmest in summer. It would just be another similar looking curve as the daily temperatures but on a different timescale. That's actually how perlin noise works in general.

    If you don't mind waiting a bit I can experiment later on putting this together, probably with a variables for yearly, monthly, and daily variation. A tropical location would have less variation across seasons than others. Maybe also need a start/target temperature variable, which would basically be your average.

  • You're lacking a range/scale value. Even if you have an average of -4, your range through the day could be -3 to -5 or 96 to -104 and both be valid.

    Assuming you want an symmetrical, eased, curve like set of values across 24 hours, you won't need to define different behaviours for different sets of time at all. You can use lerp for this, perhaps combined with either the easy-ease formula or a simple sine formula to make it smooth.

    Also, is your data going to be continuous for the next day? If you're just going by a daily average and don't take into account what temperature the previous day ended at, there could be a jump. Basically you'll also want to define a starting point.

  • Right click a condition and there should be invert in the context menu.

  • What? That's literally exactly what normal maps are for. Did you see that the tutorial had multiple pages?

  • You are missing normal maps.

    construct.net/en/tutorials/enlighten-games-dynamic-1213

  • Check project properties - pixel rounding on and sampling nearest?