construct-2

Phonegap app performance on Nexsus vs Samsung

戏子无情 提交于 2019-12-25 04:49:14
问题 I'm developing a mobile game for kids in HTML5 using Construct 2 as game engine and Phonegap build to compile the game. I test my game on Nexus 4, 5, and 9 devices, on HTC and on Samsung Galaxy S4 and Samsung Note 3. On the Nexuses and on the HTC my game runs well, but on the Samsung devices my game stuck. What can be difference between the devices? 回答1: Short Answer: Many differences. Here are some helpful articles. Android Fragmentation Visualized http://opensignal.com/reports/2014/android

Can I build games w/ Construct 2 and compile w/ new VS 2013 Cordova support?

瘦欲@ 提交于 2019-12-25 02:30:05
问题 After noticing the added support for Apache Cordova builds into Update 2 of Visual Studio 2013, I wonder if it could be possible to create a game with Construct 2, export as phonegap app and build using this new VS feature. Thanks in advance, Marcelo 回答1: If the question is whether you should be able to take a PhoneGap project and convert it, then yes. However, they may need to tweak some things around plugins and config.xml depending on how old the project is. (Ex: There are some things in

Solution: Run game local (file:///) Construct 2

為{幸葍}努か 提交于 2019-12-13 02:34:07
问题 I've recentelly had to build a mobile app that could download games build with Construct 2 and run locally, the solution I've got is handle the game data and sounds in a different way. And here is my solution: 回答1: 1- Export your game with the minify option unchecked 2- Change the way Construct handle sounds, to do that we need to open the index.html and add right after the code: <div style="display:none;"> <script> window.playAudioAux = function(url){ var output = url.substr(0, url

Loading a string if HTML into an iframe using JavaScript

让人想犯罪 __ 提交于 2019-12-09 18:10:38
问题 I have a string of HTML tags that I can add to or change whenever I like. "<html><body><script language="javascript" src=""></script></body></html>" Is it possible to load that string at runtime into an Iframe as if it was an HTML file? This is for Construct 2. I have an object that can load HTML from a url fine, it can also insert HTML, and run scripts, but not as is. 回答1: You can do it with document.getElementById('iframe').src = "data:text/html;charset=utf-8," + escape(html); See the

How to enable 'Access-Control-Allow-Origin' header for all files in a directory of XAMPP?

社会主义新天地 提交于 2019-12-09 14:19:51
问题 I am developing a HTML5 Javascript app to get an image from my local server which runs on the same machine as the app. When I run the app on my Chrome, I got: Access to Image at 'http://localhost/someDIrectory/1.jpg' from origin 'http://localhost:50000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:50000' is therefore not allowed access. From many questions here, the answers point out that I need to set

SDK error in Visual Studio Community 2015

浪子不回头ぞ 提交于 2019-12-07 06:07:00
问题 Upon rebuilding the solution to a file in Visual Studio exported from Construct 2 I received errors: MSB3774 Could not find SDK "Microsoft.WinJS.2.0, Version-1.0" MSB3774 Could not find SDK "Microsoft.WinJS.2.1, Version-1.0" 回答1: Open Visual Studio Click File->New Project Click Windows Click Windows 8 There will be an option there to install the Windows 8.1 tools. 来源: https://stackoverflow.com/questions/33715663/sdk-error-in-visual-studio-community-2015

SDK error in Visual Studio Community 2015

梦想的初衷 提交于 2019-12-05 11:10:15
Upon rebuilding the solution to a file in Visual Studio exported from Construct 2 I received errors: MSB3774 Could not find SDK "Microsoft.WinJS.2.0, Version-1.0" MSB3774 Could not find SDK "Microsoft.WinJS.2.1, Version-1.0" Open Visual Studio Click File->New Project Click Windows Click Windows 8 There will be an option there to install the Windows 8.1 tools. 来源: https://stackoverflow.com/questions/33715663/sdk-error-in-visual-studio-community-2015

How to enable 'Access-Control-Allow-Origin' header for all files in a directory of XAMPP?

元气小坏坏 提交于 2019-12-03 23:47:15
I am developing a HTML5 Javascript app to get an image from my local server which runs on the same machine as the app. When I run the app on my Chrome, I got: Access to Image at ' http://localhost/someDIrectory/1.jpg ' from origin ' http://localhost:50000 ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://localhost:50000 ' is therefore not allowed access. From many questions here, the answers point out that I need to set header("Access-Control-Allow-Origin: *"); in php file and it should work, but that is for php

How did Scirra get HTML5 audio so perfect in Construct 2?

江枫思渺然 提交于 2019-12-03 02:55:33
问题 Check out this space shooter demo. The HTML5 audio is perfect on Chrome 18 and Firefox 10. There is no lag in playing sounds and each sample plays perfectly. The last time I tried to play sounds using HTML5 audio and JavaScript I couldn't get a sound to play more than once. What sorcery is Scirra doing to make this so perfect? 回答1: I'm the developer of Construct 2, so I hope I'm sufficiently qualified to answer your question :) HTML5 audio is indeed a mess, so I've gone to considerable

How did Scirra get HTML5 audio so perfect in Construct 2?

狂风中的少年 提交于 2019-12-02 14:54:02
Check out this space shooter demo . The HTML5 audio is perfect on Chrome 18 and Firefox 10. There is no lag in playing sounds and each sample plays perfectly. The last time I tried to play sounds using HTML5 audio and JavaScript I couldn't get a sound to play more than once. What sorcery is Scirra doing to make this so perfect? AshleysBrain I'm the developer of Construct 2, so I hope I'm sufficiently qualified to answer your question :) HTML5 audio is indeed a mess, so I've gone to considerable lengths to try and make it bulletproof in Construct 2. Here's an outline of what I've done: Use the