lucid's Forum Posts

  • mask and erase seem to be the same things but inverse of eachother. it would be helpful if I could mask the whole layer, and then use a small sprite to cut a whole and see a little circle cutout of the layer. or the reverse for erase

    as of now if you want to do this you need to make a mask that takes up the whole view, with your actual mask shape in the middle. and if you want to be able to move it, the mask has to take up more than the view.

    there should be a checkbox on the layer or on the mask effect, that allows you to start with the whole thing masked and then your mask sprite could cut a whole in that.

    an example of the problem I'm trying to solve is in the cap below.

    the idea is to only see the circle of pink stuff revealed, but if you move the mouse around you can easily ruin the effect.

    problem.cap

    on a side note, it'd be cool if you could toggle the behavior of overlapping masks to go more transparent or less so. as of now if I put two masks over eachother, it goes by whichever is more transparent. it'd be convenient to be able to trigger the opposite behavior, or an average. it's also not possible to combine erase and mask to fix either problem.

  • so if I put bumpmapping on a sprite, at runtime I can change lightx and lighty

    if I put bumpmapping on a layer, is there a way I can change lightx and lighty at runtime?

  • click to change in each one. of course they didn't have to look different than the originals, but it illustrates that it's a new object at that point

    TileToGravity:

    Unhinge:

    if you find the animation of the unhinging to be a little awkward, it's because the center of gravity is instantly switched. it's possible to get around that. this may be accurate enough for your purposes though

  • you can do both by replacing the object with one that looks the same

    and destroying the original in the same event

    copy the x and y coordinates

    copy the angle

    and if it's a hinge you should copy the angular velocity also

    so the movement stays natural

    I can post a cap if you cant get it to work

    Ive done this before, so it definitely works

  • Is this the effect you're going for?

    not quite

    this is the effect I'm going for

    only without cheating by having a clone of the background.

    if I had a bunch of sprites and things animating behind this layer, I would still want it to work, so the method I used in this cap won't due. But it shows the effect I'm going for

  • Why don't you just crop the circle?

    I need the huge square to mask the rest of the screen. I don't want to see anything except for what's behind the circle. if I crop the circle, it won't hide the background. here I posted a cap to show the problem:

    move around sprite3, so you can see what I mean. I want the pink square to only be revealed by the circle. I realize I could've made sprite three bigger, but that's what I'm trying to avoid. if I would have cropped it, it really wouldn't work at all. this cap also let's you see how distracting and difficult it is to move around an invisible mask with a huge border. I plan to have many on screen at once to create a variety of effects.

  • thanks for the suggestions guys

    but neither is exactly what I meant

    let's say you have a background

    and you want to see the whole background at all times

    on top of the background (on the next layer) you have a sprite of a ghost and a circle

    you don't want to see the circle, but you want to use the circle as a mask to reveal the ghost

    so the ghost is invisible except for parts that are overlapped by the circle

    I can do this by making a huge transparent square sprite with an opaque circle in the middle and using mask, or a huge opaque square sprite with a transparent circle in the middle using erase. I'm trying to figure out a combination of layer and sprite effects, where I can just have the circle by itself, without needing a huge square around it. even if I need a huge square sprite I have to reuse, I don't mind. I just want the circle I'm using as a mask to be separate from the huge square, so I can move it and reshape it freely without worrying about whether the square is covering the rest of the screen.

  • I have a feeling the answer may end up being obvious, is there an effect or a technique to do the opposite of what mask does, only reveal a certain part of the layer, because, for now, if I want to reveal only a small circle of a layer using a mask, I need to use a huge transparent png that takes up the whole screen with a small circle in the middle of it. is there an easier way?

  • thanks

    I guess I'll be upgrading then

  • sorry, I know this is probably posted elsewhere, but I can't find it in search, probably cuz I'm tired. Does construct work in vista 64?

    thanks guys and gals

  • oh wow

    thanks, I can't wait to post a cap of the stuff I've been working on

    construct is about 1903891283 times more amazing then I even thought possible

  • I made a sprite, white fading to no opacity

    when I turn the mask effect on, the white part is see through

    and the transparent parts are black

    I thought it would make whatever was under the transparent parts invisible,

    the background of my project I made blue, so I could make sure it wasn't just masking all the way to the bottom

    any help would be appreciated

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • gotcha

    could someone please reupload the softbody meatballs or whatever to a nonlame webspace then

    I'm really curious to see it

  • [quote:2xrv7l5y]Heres what happens if you give the particles a physics movement, then apply springs between the particles, and then render a mesh to where those particles are

    http://www.fileshack.us/get_file.php?id ... quares.zip

    And thanks everyone for the examp

    ok, am I supposed to have to download some IOJ program to download these files?

    it always takes me to a page like this:

    http://www.ioj.com/redirect.php?id=4869 ... quares.zip

    and I hate downloaders, I just want to download the cap, not an extra program to help me download the cap

    also

    every time I download an example with drag and drop behavior

    it makes me remove the behavior and re-add it for it to work

    it's called drag&drop when I open the cap and it doesn't work

    I remove the behavior and re-add it and it's called dragdrop

    and it does. I reinstalled construct recently, and it still does this

  • yay

    I had no idea there were so many other people looking for 2d skinning