newt's Forum Posts

  • Its interesting. I'm guessing this would give you the ability to change your sounds without having to re do the export as well.

    Question: How do you determine which type of file to use for the different browsers?

  • The index is available to all objects text(index).text. IE text2 set text to text1(text2.iid).text....

    And lions and tigers, and bears, oh my.

  • Just wondering what the best method would be for interpolating an array of random numbers?

    Edit:

    Also, mulling over a subdivision sort of system, and Im wondering if that would be better or, getting an average between points.

  • % or modulo returns the remainder from division so variable%2 would be the remainder of the variable divided by 2. Then as you know, any even number divided by 2 has a remainder of 0, since they are all divisible by 2. That also means any odd number will not be 0.

    ? : are conditionals. If you do a comparison, like 1=1, the system will take the question mark to mean that anything after ? is to be taken when the condition is true. Then anything after : is to be used if it was false. so 12%2=0 would give you 0 as a remainder, and be true.

  • Simple toggle

  • No idea of what you want, but I can tell you as far as angles go, 0 degrees would be frame 3, 45 degrees would be frame 2, 90 degrees would be frame 1, etc.

  • If you wanted just the viewport you could use Rojohound's Canvas plug on preview.

    It has the ability to output its contents to a base 64 string.

    You cant right click, save as, but Pode made a file save plug.

  • The problem with using frames is you are limited to that frame for that shape, and it will not scale well.

    A polygon object adds very little to the download, can be scaled, and can be made into any shape(within reason).

    +1 for this, even if it doesn't get collisions, a simple box would be nice however.

    +1 more for something like the box object in CC. Can't do selection boxes with sprites....

  • Might just get a good sized hd, or external, and dual boot.

    Besides you're probably going to need to get into some Linux before too long.

  • You could also vary the t element based on a percentage, like (int(timer)-timer)%10.

  • There are several possibilities, lerp(a,b,t), custom movement behavior, or even rex's move to behavior.

  • I think hes talking about skewing a texture, something like:

    --***

    -*****

    *******

    Might be fairly easy in webgl, once we get access to that.

    Not so much in javascript, however I believe css3 has some transforms that could handle it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Lerp(start, end, t)

    Its something like:

    objects variable= move

    object set position to lerp(object.x, target.x,1-0.5^dt), lerp(object.y,target.y,1-0.5^dt)

    That tells the object that while its variable returns true, set its current x to the distance between it, and the target every 1-0.5^dt ticks.

    So if its last x was 0, then its next x might be 1, because you are referencing its current x, rather than a static point.

    If you were to say set x to lerp(1,10,1-0.5^dt), it would go to the distance between 1 and 10 divided by about 0.6, or half, say about 5.5.

    If the t value were 0.9 it would go to about 9.

  • Might try Canvas.

    Write text, set position, set color, paste into canvas, repeat.....

  • OK

    Found the culprit, and it was not Canvas!.

    After gutting the game, pulling out all the questionable objects, Canvas, Particles, Webstorage, Audio......

    Turns out it was something completely innocuous, you would think... Families...

    Any way thumbs up, Canvas is good to go.    <img src="smileys/smiley17.gif" border="0" align="middle" />