cjbruce's Forum Posts

  • It is super easy to do! You can put the game into an iframe, or link to it on its own separate page. See the link in my signature for an example of what this could look like.

  • > I have a hard time understanding how Asphalt 8, Modern Combat, Titan Quest etc. can all run on my device yet somehow a simple 2D game is maxing it out

    >

    3D games in particular have a very different rendering approach. Many GPUs have limited bandwidth, and the fact 3D games have depth allow them to use a front-to-back approach that more or less ensures every pixel is only drawn to once, at least for the basic color pass.

    Ashley

    Thank you for pointing this out. Using the Q3D plugin with C2 to make 3D games, I have wondered why I have been CPU-limited instead of GPU-limited, even though there are potentially many occluded surfaces for every screen pixel. Using the integrated Intel graphics on my 2013 MacBook Air, I have not even begun to stress my GPU, while I have been way overloading the CPU. I have had to go through every event sheet with a fine-toothed comb to minimize CPU cycles.

    In 3D games, I have been using small textures, and the GPU has never been a bottleneck.

    Just for kicks I have been tooling around with Unreal Engine 4 and Unity for the past few weeks. Unreal Engine 4 crashes every 15 minutes, completely overwhelming both my GPU and CPU. Unity is stable, but I don't try to push it. Three.js (a webGL 3D framework) is totally stable on my MacBook Air. After experimenting with all of these options, I concur that WebGL doesn't have a fundamental disadvantage for GPU-limited games. We still need to be careful about the CPU though. I think there is still a native performance advantage for CPU-limited games.

  • Hi all, spend most of my time creating media for 3D world, but still love to tinker with C2.

    I have been asked to make a calendar based app, and wondering if it is actually feasible or even possible with C2.

    The app would need:

    1) to be able to create a calendar type interface

    2) be able to save data for user selected days (just a couple of simple numbers (hours on a job for example)

    3) retrieve that info for read back purposes when scrolling from month to month

    4) possibly store that info in the cloud (dropbox)

    Is this possible?

    Any ideas on best approach to this kind of thing?

    Are there any calendar plugins available? (tried searching calendar and just get a couple of Cordova related topics returned)

    I will go off and begin a slow crawl through the plethora of plugins in the Addons Forum, but any tips would be greatly appreciated.

    Thanks....

    Is this something that is designed to be mobile, or web-based?

    In either case, there are a lot of native tools to do this, while in C2 you will have to implement a lot of the functionality yourself. I have done something like this in C2, but it took MUCH longer to do it in C2 than similar systems built in JavaScript and in Objective C:

    http://simbucket.com/chemthinkserver/chemthink/index.html?as

    If you are interested, feel free to create a teacher account and log in to see what this might look like. It is designed with a scrolling list view, rather than a weekly or monthly calendar, but it does most of what you are looking to do:

    2) It stores the due date for an assignment.

    3) It retrieves the name of the assignment and the due date in the student assignments screen.

    4) Everything is stored on a php web server so that students can see their own data and teachers can see all of their students' data.

  • It does feel weird, but it is pretty sweet once you get over the weirdness.

  • fuego96

    Okay, this is officially awesome. I am blown away.

    Any chance of making this server's API or something like it public? It halfway solves the 3D editor problem.

  • AirConsole works pretty well for local multiplayer (two people sitting on the same couch, playing against each other). I'm not sure about making a video tutorial at this point, but there is some good information in the AirConsole thread about how to set up the Construct 2 workflow:

    https://www.scirra.com/forum/airconsole-controller-maker_t186227?start=140

  • I do, but maybe can update the links?

  • You are looking for the AJAX object. It allows GET and POST requests:

    https://www.scirra.com/manual/107/ajax

    In my experience, there are 2 gotchas:

    1. Remember to properly escape any quotes "".

    2. The format for sending POST data is the same as for GET. In the C2 manual it says:

    [quote:2grndpef]Post to URL

    Send a request with data to a URL and retrieve the response. A tag is provided to match it up with the On completed, On progress and On error triggers. Construct 2 does not automatically URL encode the post data - use the URLEncode system expression to ensure the data is in the correct format for posting. Note post data is in the same format as a query string, e.g. "foo=1&bar=2". The method can also be specified: by default it is POST, but for some APIs you may need to change this to PUT, DELETE or another HTTP method.

  • That's not a good solution, even though it'll work in this case (since you only have 50). With larger sizes you'll endlessly hang the cpu as it regenerates and checks the numbers. What you need to do is store all your numbers in a list, (1,2 ... 500) pick a random index from the list, and return the number at that index. Then remove the number at that index from the list and repeat. This way the operation completes in a known time.

    +1 to this method. It is nice and simple.

    If you aren't comfortable working with arrays, you could even do this with sprites to which you have assigned a number for the instance variable:

    1. Use "pick random instance", store the number assigned to that instance in an array, then delete that sprite instance.

    2. Repeat until all of the instances have been destroyed.

    I recommend learning how to do this with arrays though, as creating sprites for the sole purpose of destroying them is kind of wasteful.

  • fuego96

    How did you design and place objects for the track? Was there a lot of trial and error?

  • fuego96,

    Well done! Its good for poeple to see that you can get great performance out of 3D WebGL. Now if we could only convince people that a 3D viewport is worth it! 😊

  • Ah. How are you controlling the puck? Possibly with the Drag-and-Drop behavior?

  • You don't have control over their cache, but you can recommend that players use "Incognito Mode" (Chrome), "Private Browsing Mode" (Safari), "InPrivate Mode" (Microsoft Edge), or similar to prevent caching altogether.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The easiest way is with the "Physics" behavior, which is designed to do this specifically. Just remember to set world gravity to 0 so that objects with physics behavior don't automatically fall to the bottom of the screen.

  • I have paid for a subscription to support Scirra, but can't switch at this point because I rely on C2-only plugins.

    I love having the ability to work in Mac OS, but my two major projects will probably never be ported.