gumshoe2029's Recent Forum Activity

  • What math is that though?

    Why does it require a y-component for the X layer and an x-component for the Y layer though? That seems intuitively odd.

    Either way, using the CanvasToLayerX/Y fixed (or at least markedly improved) our spastic zoom and pan problem over using the Mouse.X and Mouse.Y.

    I suppose it would be nice to have more precise and thorough documentation, although I would much prefer Scirra improving Construct into the website design arena over improved documentation.

  • Sort of. I am actually using it for a mouse-wheel-based zoom and pan (like Google maps) sort of thing.

    I mostly want to know how that particular function works on the inside.

  • I have actually experienced something similar to this on a much smaller scale. I built our basic website using C2 ( currently living at http://50.112.151.9/home ), and I found that when using a time-based solution to having the menu items scroll-up, the speed at which it moves varies based on the machine and browser it is run on. I suspect this particular behavior is due to inconsistent clock timing.

    I am not sure if this clock issue is related, but from a physical standpoint, any deviation in timing will result in micro-stutters, as they are described.

    I ran that Jsfiddle on my machine also, and I only had 1 or 2 spikes and the rest was very consistent, so that is very likely browser-specific or perhaps even machine-specific.

  • I use it in practice, and as far as I can determine it gives the mouse coordinate in a local layer. For instance, I have a 10,000 x 10,000 (roughly) pixel canvas that I zoom in on. The Mouse.absoluteX and Mouse.absoluteY give you the mouse coordinates with respect to the screen. Mouse.X("layer") and Mouse.Y("layer") gives me the mouse coordinates with respect to my 10,000 x 10,000 px grid.

    I am not really certain at all how the other expression works or what canvas it is mapping from. I assume it is mapping from the c2canvas to whatever layer I specify, but I don't see why it needs both x and y coordinates to do that.

  • Nobody knows how either of these work?

  • What is the difference between these expressions:

    CanvasToLayerX("Layer 0", Mouse.AbsoluteX, Mouse.AbsoluteY)

    and

    Mouse.X("Layer 0")

    ?

    I was using these in a large (like 10,000 x 10,000 px field) zoom and pan, and they behave much differently, despite the fact that they seem conceptually the same.

  • We currently hash the password and username together as a single unit before shipment on login, but this still requires the user's browser not to be compromised (which you can never be sure of). We are probably going to add a dynamically variant salt that the server will ship to the user's browser with a one time salt to hash with that will expire on a successful login.

    Once the user is logged in everything is tracked via a session id which ties into a server-side cache containing all session details.

    We will eventually go SSL, but for now we are in development.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Why don't you just use like Amazon Web Services free web servers (EC2), then you won't be making same origin calls.

    However, I did get the Same Origin calls working on my local development machine.

    Here are the relevant Apache settings:

    <Directory />

    AllowOverride None

    Options FollowSymLinks

    Header set Access-Control-Allow-Origin "*"

    </Directory>

    DocumentRoot "D:/Apache HTTPD 2.4.3/htdocs"

    <Directory "D:/Apache HTTPD 2.4.3/htdocs">

    AllowOverride None

    </Directory>

    However, I am only using Apache as a proxy gateway server, not the content delivery server. I run all requests through Apache back to a Tomcat serlvet container which feeds all game data.

  • Right, I'll tweak it to not do that. I want it to error off if the AJAX call fails. Thanks for your awesome plugin.

  • Does your Date plugin always grab the Date() from the System clock? I have been trying to get server time (in a UNIX timestamp format) via an AJAX call, but the clock seems to be displaying my local system time, not the server time that I gave the timestamp in your example.

  • Thanks.

  • We are making a MMO in C2 right now, but all of the hard work is done by Java servlets on the backend.

gumshoe2029's avatar

gumshoe2029

Member since 4 Mar, 2014

None one is following gumshoe2029 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies