newt's Forum Posts

  • I realize you just need 90 degrees rotations, but for added effect, you can use any angle doing a matrix transformation using S.xoffrot(,,,) from "S". I'll try to do an example later.

    Btw I think "S" has a built in function to rotate its arrays as well.

  • Sounds like its not getting triggered somehow.

    Here's an example.

  • Tested your cap out with Tulimide in chat, and we found a solution, as well as a bug.

    It seems you were constantly adding the boundaries to the los obstacles, and thats most probably what was causing the fps drop.

    So if you look at event 28 you'll see the always event, just change that to a trigger once while true, and drag your sub-event on its own. It doesn't need the always.

    Now that will fix the fps, but Tulimide found a real bug with los picking multiple instances, and while it doesn't seem to harm the preview it drives the debugger crazy, and if you try to click on one of the "extra" instance's reference it will crash the preview. So I would say its probably not a good idea at this time to add an object that has multiple instances to the los behaviors "add obstacle". Instead you can place the object you know will have multiple instances into a family and add that family to your "add obstacle" event.

    Like so:

    trigger once while true-> los add obstacle family.black

    Fixed cap in link.

  • Try has los instead of on, and get rid of the always. You can then do else instead of the negated.

  • True for bullets it really wont matter if I don't have an onscreen representation. They are pretty much instant hit visually.

    I would like to do some visuals like missiles, and perhaps some sifi stuff like lasers, or lightning bolts a la Command and Conquer, but those could still work off of instant hit, or percentage, especially the lightning.

    Also screens:

    <img src="http://dl.dropbox.com/u/666516/screencapture1330118714.bmp" border="0">

    screen2

    screen3

    screen4

  • This is more or less a test to see how well the 3d object and distort maps would work for making an rts, or some sort of sim.

    The rts behavior works fairly well with the 3d object with a few dummy objects paired up, so an rts is definitely doable.

    I'm kind of thinking about perhaps using Scidave's online plug to do a 1 vs 1, or maybe even a turn based chess/checkers with tanks thingy.

    One thought I've had is a simulation phase where you build up resources, and invest them into your team. Then have an online part where you do the turn based battle.

    Collision detection is pretty much a no go since its 3d, and the online plug really wasn't designed to handle a bullet hell. So I'm definitely leaning more towards the turn based scenario. I'm not sure exactly how to handle that, but chances are it would probably be based on a percentage system, IE chance to hit, chance to do so much damage, etc.

    Any thoughts or ideas?

    Edit: der forgot the link... may upload screens later.

    Link to demo

  • Well a plug would give C2 a leg up if it didn't rely on webgl.

    The question is how slow would it be?

    Lucid's link actually ran pretty good on my FF3.6.

  • If your testing for "solid", then telling it not to test for solid on a layer wont do. Its either all in, or all out when comparing an attribute.

    However you can test if an object is on a layer, and then set the collision mode for those objects to none.

  • Thanks. An expanded tutorial really was needed, so thumbs up.

  • What has the internet come to when IE works and you have to add special workarounds for Firefox and Chrome??!! :S

    Heh

    Yeah it only took em like six years to add proper png support, and now they're ahead of everyone else, and not shoving silverlight down our throats.

    Isn't this one of the signs of the apocalypse?

  • Kyatric

    Well I mean a full fledged non proprietary plug.

    chrisbrobs

    Perhaps with Java, but that's even more limiting. Or some one could maybe make a plug for FireFox, but sol for other browsers.

  • To bad you cant just make some browser plugins to play sounds.

  • I think that's one of Rich's plugs, a developer who's no longer around, so the source may never be available. However its a fairly simple plug, and you can probably figure out the basics by reading the dev forum, picking, for each, etc.

  • Or... work around of the week.

    Imported frames IE "sprite load animation frame from file" generate a collision mask. Even if said frames have no alpha, and use "magic pink" instead.

    How is this useful?

    Images like this:

    <img src="http://dl.dropbox.com/u/666516/terrain.png" border="0" />

    Can be imported and used as an obstacle mask for rts, solid etc.

    Why should you care?

    The image manipulator object does not have options for an alpha channel, and while "magic pink" does work for making an alpha, a new mask is not made unless its imported.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > about png 8bit > my mistake, first time i tried it didnt work by dragging image to stage, and other png did, now it works too, so it works!, its a good way to save on filesize!

    It won't save on filesize - Construct 2 converts everything you import to 32-bit PNG.

    The question is then, do browsers care?

    Its not like you can't switch them in the export.