gumshoe2029's Forum Posts

  • I don't really want to download the "GameJolt" plugin, so I cannot open your capx.

    Make sure your layout size is large enough and you have unbounded scrolling active.

    https://www.scirra.com/manual/102/scroll-to

  • So, why doesn't it work?

  • I would use JSON, like:

    {"cat": ["milk","ball","catnip"], "dog": ["bone","chewy","ball"]}

    unless you need more cross referencing, then maybe a 2-d array would be better. You can still use JSON, just the underlying data structure changes.

  • Yes, it is possible.

  • You are already on the right track, but you need to shrink and limit the angles. Curved lines are simply a combination of a large number of very short straight lines are gradual angles.

    If you have a specific shape in mind, you might be able to model it with specific math equations (like sin x, x^2, e^x, etc), but if you want arbitrary shapes then you will need to fall back on incremental lines.

  • Probably. C2 uses combined Sprite sheets in a single image to do the sprite frames. I have not done this before though, so post an explanation if you get it working.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It should, I believe. I've only ever used the full VMWare business suite though.

  • gumshoe2029 .. this is what I was looking for, thanks for the briefing.

    data cache in memory on the server - is it like a memcache or something you are using flat file or sessions on cookies ? I think you have used ajax with MP ?

    The datacache is an in-memory object in Java based on the ConcurrentHashMap that stores TableKeys and Table objects that store the entire database in memory for quick (sub-nanosecond) access.

    I use Redis for session cookies. I store the sessions as JSON strings in the Redis cache using crypographically secure random SHA-512 hashes as keys.

    I do not use the Multiplayer plugin at all, because our game state is 100% determined by the server. Basically, the entire game state is stored in the cache, and the game engines modify the data in the cache and the API engine dips in and grabs specifics for players on AJAX HTTP GET requests. The server ships it to them in JSON, and we use rex_hash to parse and use the data in the C2 client.

    If you are having response problems it is probably a PHP issue, not a Construct2 issue.

    Example: galaxy API call:

    This call is not even gzipped yet, and it completes displaying ~18,500 data entries in 4.33s. The server-side Java processing takes about 100ms.

    Here is the same call using the gzip protocol on the Apache webserver:

    850ms complete from start to finish.

  • Your answers are all in the manual:

    https://www.scirra.com/manual/102/scroll-to

    With special emphasis on bold:

    [quote:3qjw58af]The Scroll To behavior simply centers the view on the object with the behavior. It is a shortcut for the Scroll to object system action. However, it also provides a Shake action to shake the screen, and if multiple objects have the Scroll To behavior, it will center the view in between all of them.

    If you need more advanced scrolling, e.g. limited to certain regions or following the player after a delay, scroll to an invisible object which you control through events.

    To scroll, the size of the layout must be bigger than the size of the window, or the layout's Unbounded scrolling property must be set to Yes. Otherwise there is nowhere to scroll to and scrolling will have no effect.

    Scroll To has no properties, conditions or expressions.

    Like this:

  • Chill man! It seems that Dropbox was foobarred a few days ago. Everyone's link was broken that I clicked on that day. I'll take a look at your capx.

  • The software for recording my activities is called ManicTime. It runs on the background and doesn't take CPU. Is very good for discovering why i didn't do any work this week or last week. Usually is VLC, Youtube (random stuff), facebook (more random stuff, some game related) and random stuff on internet. Need to focus more and less random stuff )

    Thanks, I am going to go download that now and fiddle with it.

  • That is a JSON syntax error.

    If you know how to use Java, you can run the contents of that file through the Google Gson parser and it will tell you exactly what the syntax error is.

    Or you can just open it and go to the line column indicated and fix the error in the JSON.

    Or you can send the file to me, I have a program already setup to check my own JSON.

    Most of my JSON errors are either missing or extra commas, missing } or { or extra {, }, [, or ] or type errors where I have "" when I shouldn't, etc.

  • So in the time it would take to figure out how the level tiles are stored, I could piece together screenshots of the whole level to create a reference and then just remake it. I was looking forward to working with a raw data format, but since there isn't one, I guess it's best to work smarter, not harder. Thank you for your input!

    Yea, sorry, you would have to reverse engineer it logically and take all of the images and import them into a new C2 project, then just begin rebuilding it from the ground up.

  • Make Human just got to 1.2

    http://www.makehuman.org/

    And it is open source too! Impressive!

  • Like Defiance?