madster's Recent Forum Activity

  • oh you gotta use a 24-bit png. 8-bit palette transparency doesn't seem to work with Construct.

    In Photoshop: save for web and devices, PNG preset, set 24-bit manually. Transparent backgrounds from photoshop will be exported correctly that way.

    If you can't get a transparent background in photoshop, try duplicating the Background layer then deleting the original layer. You'll be able to erase to transparent now.

  • 47: the meaning of 'opacity' depends on the effect. As they are plugins, each should implement it by itself. Effects developers: more options!

    48: you're much better off doing a state machine. See flags below, only set the current state in a number, add the number as a condition to the events that can only happen in the current state. Change said state within the event.

    49: use flags. 1 to enable, 0 to disable.

    +On control "left"

    +global('movementEnabled) equals 1

    do stuff

  • http://www.udec.cl/~jfuente_alba/random_invaders.zip

    In this game you shoot stuff before it comes at you.

    What stuff?

    Well, what's the craziest stuff you can think of? make a .png (or .jpg if you must), put it in the "enemy" folder. Post it here! Collect random invaders!

    Size will be mantained, so keep the size around 128x128.

    Inspired by Megamania, old ATARI game.

    ADDENDUM: around 128x128 is for large enemies, 64x64 makes good smallish enemies. More or less than that and you'll wind up with either one huge enemy or a jillion small ones.

    (the game spawns enough enemies to fill the screen depending on the image size)

    Drag the images from the forum to your enemies folder!

  • n+1th'd!!

  • -> dx_ray(t)/dt = speed, it's chaning, because...

    -> d2x_ray(t)/dt2 = (2 * w * w * y * cos(wt)) / (sin^3(wt)) ... acceleration is not a constant value.

    And if acceleration was constant, speed would still be changing.

    But that's besides the point.

    I did say it won't synch up forever, but it can be matched to the tangent, which given the large radius will look good enough. Again: Like a tread moved by a cog.

  • Sorry, learned this in physics a while ago.

    You just *can't* take a value and do calculations on it and expect the error not to grow.

    Timedelta is in seconds, thus 0.0001% of timedelta amounts to 0.000001* = 0.0001ms error

    that over a day is: 24 hours * 60 minutes * 60 seconds * 1000 miliseconds = 86400000 ms.

    the error thus will be bounded by 86400000 * 0.0001ms = 8640ms

    That is, off by eight and a half seconds.

    Of course, float's rounding error is not fixed and timedelta's error depends on the internal timer resolution, which could be QueryPerformanceCounter(). I read that one has microsecond resolution, which is nice. Still, it's not exact. It cannot be. Nothing is.

  • When you're animating you need to move the hotspot sometimes, and check with the other layers.

    Onion skin is a really useful tool for animators. Tweaking animations as it is now is kind of uncomfortable.

    I second onion skin request!

  • uhm. yes it can.

    Just calculate the speed at a certain distance from the center using angular speed, then either set the tanks to that speed or reverse the equation to get the angular speed.

    Won't synch up all the way along the axis, but if you pick an arc that stays long enough near the tanks the visual effect will be there. Like a tread moved by a cog.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • if you want time elapsed from the beginning you're better off using Timer (system - get time)

    To fire off an event every certain amount of miliseconds with long-term accuracy, you could do something like

    +compare Timer%MyFiringPeriod less or equal than MyFiringPeriod*0.4

    +Fire once while true

    Timedelta will always have rounding errors which will accumulate to something hideous.

    Even if its precision was to the milisecond, rounding errors would still crop up when you accumulate.

    This timer, of course, will wrap after a certain amount of days (which I'm too lazy to calculate). Adjust accordingly.

  • Mind just went kablooie.

  • Gambit looks great and plays great, though I would have liked to see original graphics too. (but hey, congrats on your first playable!)

    Lion taming ftw!

madster's avatar

madster

Member since 17 Feb, 2009

None one is following madster yet!

Trophy Case

  • 15-Year Club

Progress

15/44
How to earn trophies