cjbruce's Recent Forum Activity

  • I just realized that I have been going about this all wrong. All I have to do is redirect the user to the new directory. Here is the final solution.

    <!DOCTYPE html>
    <html>
    <script type="text/javascript">
    	window.location.href = "content/index.html";
    </script>
    </html>[/code:1qlphgbt]
    
    If anyone is making games for AirConsole, or similar, this should work as a way to separate the controller.html and screen.html files.  Just use a redirect for each of them to the appropriate directory, and you are all set.
  • So far no luck with Solution #1.

    Solution #2 is working fine on my desktop Safari browser, but it is doing weird things on my iPad, iPhone, and Nexus 5:

    1. Resizing no longer works correctly on screen rotations for mobile devices. It does not scale down below the menu bar, meaning the top portion of the display is covered by the menu bar.

    2. On my iPad it takes a very long time for the scale to autofit to the screen width. On my iPhone, it doesn't autofit at all. On my Nexus 5, it auto fits instantly and correctly. This appears to be a problem with the Q3D plugin, as the behavior completely changes when I set the Q3DMaster object scale/position to "Positioned" instead of "AutoFit". QuaziGNRLnose, any ideas?

    It is definitely good enough for desktops and chromebooks, but there are a lot of iPad-only schools (I work in one), and mobile users that PBS is hoping to target as well.

    https://dl.dropboxusercontent.com/u/55106174/pbstest/index.html

    Here is my code so far:

    <!DOCTYPE html>
    <html>
    <body style="background-color:black;margin:0;padding:0;overflow: hidden;">
    
    <iframe src="content/index.html" style="width:100vw;height:100vh;min-height:100%;min-width:100%;border:none;">
      <p>Your browser does not support iframes.</p>
    </iframe>
    
    </body>
    </html>[/code:3mkkjflx]
  • The good news:

    We just received word that PBS Learning Media http://www.pbslearningmedia.org is interested in several of the simulations and tutorials at http://www.simbucket.com. Everything on the site is made with Construct 2. It is a huge feather in Construct 2's cap, as PBS content is seen by millions of students around the US every year.

    The problem:

    PBS Learning Media has very strict guidelines for what can be ingested into their CMS system. The guidelines are available at https://projects.pbs.org/confluence/display/DLM/Media+Format+Guidelines#MediaFormatGuidelines-Interactives. I am having trouble modifying the exported project files to meet their requirements:

    [quote:134ipu7f]Only the index.html and the manifest.txt files should be located in the root of the archive. All other files should be contained in a subdirectory called content.

    I have attempted the following solutions:

    SOLUTION #1 - Create a folder called contents/, and put everything there except the index.html file. In order to do this, I need to modify all of the paths in index.html, c2runtime.js and data.js to refer to the contents/ folder for all resources. Does anyone know where I would change this in the exported code? I have tried every path reference I could find in c2runtime.js and data.js, and nothing seems to work. I have a few simulations made with previous versions of Construct 2 before the existence of the data.js file, and I can get those working fine.

    Ashley, is it possible to tweak something in C2 or in the exported files to achieve the proper directory reference?

    SOLUTION #2 - Set up an iframe within an index.html file in the root directory, then export the C2 project to a subdirectory called contents/. Here's my attempt so far: https://dl.dropboxusercontent.com/u/55106174/pbstest/index.html

    Here's what I have so far for the container index.html:

    <!DOCTYPE html>
    <html>
    <body>
    
    <iframe src="content/index.html" style="min-height:100%;min-width:100%;">
      <p>Your browser does not support iframes.</p>
    </iframe>
    
    </body>
    </html>[/code:134ipu7f]
    
    It doesn't look great: The iframe shows up with a 1px border, the container document has a white background while the iframe has a black background, and the iframe content is slightly smaller (10 px maybe?) than the container document.  Are there any web gurus out there who know how to take care of these issues?
  • Maybe you could split the problem up and compute the paths one at a time?

  • i think you are looking to create a scrolling list. There isn't a default plugin that is designed to do this, but there are a number of examples of scrolling GUIs already built for you on the Scirra store. You should be able to modify one of them to fit your needs.

  • Great question! Whenever I do work for someone else, they don't really care what tool I am using to create the end product, just as long as it works. My clients have never needed to buy Construct 2.

    If you are an artist, your client doesn't need to buy an Adobe Creative Cloud subscription just because you happened to use Photoshop to make your artwork.

  • For completely accurate physics: for each car, compute velocity change, then square it. This will give you the amount of energy absorbed (total damage done) in the collision on each car. Just follow the suggestions from R0J0hound above.

    It is an artistic judgement call to determine what that damage looks like, and In the end, this is a lot more important than the math.

  • Another option is to write your own physics engine with events. Using sprites, you could create your own physics rules for collision and object interaction.

    A third option is to have your sprites be pinned to invisible physics objects. When two objects collide, the two underlying physics objects could be replaced by a single larger physics object. Just re-pin the two sprites to the larger physics object, and compute the new size of the collider based on the combined size of the two sprites. This might give you a close enough approximation of the behavior you are looking for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There isn't any reason that a third-party developer couldn't create a set of 3D add-ons for C3. It looks like X3M isn't interested in porting Babylon unless/until there exists a capability to render 3D in the layout editor. I haven't heard back from QuaziGNRLnose about Q3D, but I know that he put years into its development, and I totally get why he would be reluctant to redo all of his work for C3.

    In order for the 3D add-ons to happen for C3, they will need to come from someone in the community...

    the prospect of making them myself is really, really, really daunting...

    ...it would take years, and I don't think my family would like the idea too much.

    ugh.

  • stefanos,

    Although I agree that it would be awesome to have 3D in C3, I don't think questions like this that are designed to elicit an angry response are helping our case.

    Ashley and Tom have been pretty clear that they are trying to keep the scope of this project manageable. You and I have both being using the C2 for a long time, and we need to respect their decision to not risk breaking C3 by promising features that they can't immediately deliver.

  • Ashley,

    Sounds good, and thank you for the update. I'm still looking forward to using C3 as a 2D tool, and I have my fingers crossed for the future.

  • I'm not sure if you are targeting mobile, but I couldn't get the start button to illuminate on my iPad.

cjbruce's avatar

cjbruce

Early Adopter

Member since 25 Apr, 2013

Twitter
cjbruce has 5 followers

Connect with cjbruce

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x3
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies