Yann's Forum Posts

  • Vercingetorix

    Ok I should avoid 1px texture :D

  • I think we are running a bit in circle, you should explain a bit more what is your game.

  • Hum I remember something now.

    You won't be able to save your 'log' variable.

    The quantity of data you can send through a query string (ie: ?var=value) is limited.

    The specification does not dictate a minimum or maximum URL length, but implementation varies by browser and version. For example, Internet Explorer does not support URLs that have more than 2083 characters.[8][9] There is no limit on the number of parameters in a URL; only the raw (as opposed to URL encoded) character length of the URL matters. Web servers may also impose limits on the length of the query string, depending on how the URL and query string is stored. If the URL is too long, the web server fails with the 414 Request-URI Too Long HTTP status code.

    The common workaround for these problems is to use POST instead of GET and store the parameters in the request body. The length limits on request bodies are typically much higher than those on URL length. For example, the limit on POST size, by default, is 2 MB on IIS 4.0 and 128 KB on IIS 5.0.[10] the limit is configurable on Apache2 using the LimitRequestBody Directive which specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body [11].

    Source: http://en.wikipedia.org/wiki/Query_string

    And as far as I know, the Ajax object doesn't send POST request

  • If you have a cat object with platform behavior and a boolean instance variable named 'selected'

    You can do that:

    System: On start of layout
      -> Cat: Start ignoring Platform user input
    Mouse: On left cliced on Cat
      -> Cat: Set selected to True
    Mouse: On right click
    Cat: is Selected
      -> Cat: Jump

    If you click on a cat and then right click, only the cat on which you clicked will jump.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The force was too high for this poor low density ball

    angledGravity.capx

  • GingerBatMan

    Yeah that's a good way, even if you still can't be sure that the player doesn't manually send score and log.

    And yeah

    C2 game: Ajax Call -> server side php/asp/perl/cgi/etc -> database

    There's no way around that.

  • for that kind of stuff, I think it would be better to store the log in database along with user name and scores.

  • Vercingetorix

    Is it better?

  • I'll try something

  • The only way do do such thing, as far as I know, is to destroy some pixels in the canvas object.

    But, for now, the canvas doesn't have per-pixel collision, or polygon guessing at runtime. In short, you can visually destroy a landscape but not enter it and walk.

  • sqiddster

    since I wrote most of your gravity system? :D

  • SplashHunt

    About the "OMG I bought c2 for nothing" I don't think you wasted your money unless game creation was just a temporary interest. Well... I'm biaised 'cause I use C2 all the time, but well at least you bought it for 32$... It will go up soon

    Also yeah next time you do something crazy like mass layer or something like that. Go check the manual/tuts and if you find nothing, ask... 'cause you know, in programming being lazy is a quality.

  • My question is: why can't your break things up into different layouts?

    For performance it depends on many factors.

  • show the capx