Rhaxapopouetl's Recent Forum Activity

  • I've completely redone the capx using XOR blend, (and thus deactivating WenGL effect). But I can't change the background color, now (I previously used the webGL "HSL Adjust" effect).

    Do you know if I can still change the color of a photo without using webGL at all ?

  • Here's my demo: there are trees and mountains, stars moving, clouds and water, all in a very "minimum" style.

    I even added a little song I made for it.

    (my reputation is not high enough for me to post a direct URL):

    HTML file:

    mega.co.nz/#!fIYXQDyY!yasZqCxEz2Cw1TAH2y8znTK8YwFoUQhIpDtM3WtmS1k

    CAPX:

    mega.co.nz/#!CBRl3QSa!p0nZIeUt3Sl52_444ZQkGTZ63jkaEYx0axDdzZgAFj4

    add https:// before the link.

    2 screenshots to show the inversion BG color/ Front Color

  • I'm not targeting any platform, this isn't even a game yet. But the overall aspect of it will be very light. No GUI, just backgrounds and text (and a few sprites as comic book cells, if you see what I mean).

    Construct 2, with HTML5, is to me far more than just a game making tool. I'm thinking about my project more like an interactive comic book than a game. You know, something a little bit like The Yawhg. This means that the core of the mechanics are just branches, options in the narrative, nothing really complex to compute.

    Let's just say I wan't to make something more pretty than interactive.

    Do you think I'll still experience performance issues ? I'll post what I've been able to make yesterday in a few hours, I haven't opened the debug window yet (it's wrong, I know).

  • Maybe you can cheat by using the first technique on objects with symmetry ?

    If you have a black disc with one or two "slices" in it (by slice I mean "ways of cutting the disc). Since the dics is symmetrical, you could just rotate the disc so that the entry point of the slicing animation is set to the contact point between the disc and the mouse.

    Mouse enters the disc, the disc rotates so that the beginning of the slicing is set to "mouse.X, mouse.Y" and voilà!

    I admit it's a very "low tech" answer.

  • If ll your weapons have the same variable name, you can try to test "weapons.VariableName"

  • Have you checked those tutorials (in the tutorial section of the site):

    Uploading HTML5 games to Kongregate

    How To Upload and Host Your Game on Kongregate

    How To Export To Kongregate/How To Upload To Kongregate

    I'd love to link the articles directly, but my reputation is too low (can't post links if reputation under 250)

  • OK, thanks for the link, I thought plugins were stored in the scirra store and found nothing

    I read the plugin description: this doesn't really answer to my questions...

    Last night I managed to create more or less what I wanted: random generation of mountains, suns, with a background color that changes (as I described in my first post), can swap between foreground and background.

    The only thing that is missing is this: when two black sprites are overlapping, I want the overlap to be white (black is the color I then replace with any color I want).

    I thought I could do that by putting sprite 1 on a layer and Sprite 2 on another layer, and use the "exclusion" or "difference" effect, but it won't work (or I'm doing it wrong).

    That's really the last thing that's missing, and I feel installing the Canvas plugin won't necessarily solve this problem (and will make a lot of what I made until now obsolete).

    I'll post the .capx when I get back home tonight to show you what I mean.

  • And where can I find this plugin ? It's not listed in the Plugin Reference (in the Construct2 Manual)

  • Do I really have to use a plugin ? I'd like to avoid plugins otherwise I won't learn a thing...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello everyone, I'm trying to create (at random) monochrome backgrounds using simple overlapping shapes like this:

    As you can see in this example I made, I'd like to:

    • pick 1 random color (that I do by creating a 1x1 red pixel with the "Adjust Hue effect" that randomly generates hue, saturation and luminosity)
    • decide if this color is foreground or background (with the "choose()" expression)
    • Apply the color to the background or foreground (I think it's done by choosing the right blending effect on the right layer?)
    • And (the most important part) make it so that when two sprites overlap (for the binary suns in the picture above), the color of the intersection is the background color.

    Please, please help me, I'd love to create those backgrounds at random and add animation to it. I feel I'm close but I can't seem to grasp how masks and effects work together with layouts, backgrounds and overlapping sprites. And believe me, I read the "effects" section of the manual.

  • Yes you can, just replace your backgroundTile object by a sprite.

    With sprites, you can chose different animations or frames of an animation. Create a few grass tiles in the grass animation, create a private variable for that object called "skin", set skin to floor(random(N)) on creation, with N being the last frame you got +1.

  • Meh. My previous message hasn't been sent and was deleted on refresh...

    vee41: I'll try that, but I would prefer to understand what I'm doing. Thanks, though, it could be interesting.

    Bluehardt: been there. I think the trick of the "string to generate randomness" is a little bit too much, though. Did the same thing with the Array value at (X,Y) is (Int(random(4)) and the random integer determines the color.

    I wonder if adding a Z-axis to my array could help if I do this:

    the value at (X,Y,2) is 0 on start of layout.

    Then, for each element of the array, I compare the value with the previous, the next, the one above and the one below (so I compare (X,Y) with (X-1,Y), (X+1,Y), (X,Y-1) and (X,Y+1). If the value at (X,Y) and any of those is the same, I add 1 on (X,Y,2).

    That way, I could trigger events if Z>=3...

Rhaxapopouetl's avatar

Rhaxapopouetl

Member since 21 Mar, 2013

None one is following Rhaxapopouetl yet!

Trophy Case

  • 11-Year Club

Progress

11/44
How to earn trophies