How do I make a laser/beam/flame/whatever "barrier"

  • >

    > > Smileh did you tried the capx? just follow the pattern for the sprite. and all your problems will be fixed.

    > >

    >

    > I couldn't. Dont have the beta installed.

    >

    but i used r238 beta, stable is r239 you should be able to open it. unless you use some very old stable version in which case i dont want to help for various reasons.

    They released the 239 just yesterday, when I checket last stable version was r232/33 I think. I will download the new stable one now.

  • just tried it now. It doesn't work at all for what I need/want. I don't neceseraly need to create a "wall".

    A good way to explain it would be a flame thrower. I will attach a mockup so you can see what I want.

    Creating a sprite / bullet / whatever that doesn't actually travel, just stays in there for a while. A good example is a flamethrower, creates a barrier which you cannot pass for a brief time.

    The problem is I could just spawn the sprite, but I need something more "efficient" so I can adjust it to different sizes and heights.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I saw an easy 'laser' in your previous posts. This 'flame shape' is pretty irregular.

    If i might advise, make different animations for different heights. And set a reasonable max on the amounts of possible heights. You can name the animation in a way that you can refer to the heights with str() and int(). That way the amount of code does not run out of control.

    This is 1 investment in not that much time to be able to happy coding for the rest of the project.

  • for fire, use the beam i did, to make the wall then set it to invisible, then play the fire over it on a new sprite... C2 is simple Puzzle like... il do a demo again...

    P.S those flames, you have ..... are making me feeling bad i joined this topic ... i mean we are talking working graphics that can stretch, you show us....... some "Picasso/Rembrandt" weird painting you want to stretch....

    ok here it is the new demo laser-flame trower .... now....... i used 2 objects, however you can have 2 animations on the laser beam, as you see the fire effect im using its not looking bad when stretched, or shrink'd, its actually damn hot its all about how you make your graphics. id suggest take your time into finding the right flames?

  • for fire, use the beam i did, to make the wall then set it to invisible, then play the fire over it on a new sprite... C2 is simple Puzzle like... il do a demo again...

    P.S those flames, you have ..... are making me feeling bad i joined this topic ... i mean we are talking working graphics that can stretch, you show us....... some "Picasso/Rembrandt" weird painting you want to stretch....

    ok here it is the new demo laser-flame trower .... now....... i used 2 objects, however you can have 2 animations on the laser beam, as you see the fire effect im using its not looking bad when stretched, or shrink'd, its actually damn hot its all about how you make your graphics. id suggest take your time into finding the right flames?

    Dude, the flames I drew are just 15 seconds of photoshop over a real game to show you what I meant. LOL I thought it was pretty obvious that is not a real sprite.

    Regarding the capx, is pretty much the same as the other one, just with a different sprite. Like I said before, doesn't suit my needs, but thank you a lot for the example, might be useful for some other stuff.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)