Questions tagged [construct-2]

Construct 2 is an HTML5 game development engine from Scirra. Construct 2 is the follow up program to the open source Construct Classic.

About Construct 2

Construct 2 is an HTML5 game engine from Scirra. Construct 2 required no programming experience to make games, but Scirra offers a fully documented JavaScript SDK that allows people to extend Construct 2's capabilities.

Free Edition

Construct 2 has a free edition available for anyone to use (including educational institutions). However, it also has a few limits built into it than can only be unlocked by upgrading to the paid edition.

Resources

115 questions
1
vote
2 answers

url request is not working for an exe file

i have an exe file of a game made in construct2 tool..i am trying to run it from my as3 code using url requset..but my code is not working what should i do? here is my code.. btn1.addEventListener(MouseEvent.CLICK, f_testURLOpener); function…
USERRR5
  • 430
  • 2
  • 10
  • 27
1
vote
1 answer

Is there a way to alter what Construct 2 opens test layouts in?

On Construct 2, when you hit Run Layout, it will run the layour (of course) in Internet Explorer so you can play the game/application you are making. But, I would rather it open it in something else, like Firefox or Chrome. Is there a way to do…
The Man
  • 149
  • 3
  • 14
1
vote
0 answers

IOS 8, Link on mobile device using construct2 caus the application to crash and close

i would like to know if there is a way, to monitor IOS 8 errors on a mobile web site. Our site is a game site, and we are using construct2 as a game platform. by pressing a link(js - location.href), in my construct2, the mobile site crash and close…
1
vote
1 answer

PHP reformat JSON output

I'm building a hi score board in construct2 and am trying to lay out the chars correctly. In order to do this I have created an array in c2 and am using AJAX to return data as a JSON string from a php script held on my webserver. This data will then…
Funk247
  • 330
  • 4
  • 22
1
vote
2 answers

HTML5 sound problems on Android

I was trying to compile my Android app with HTML5 that I created using Construct 2. I followed all the steps but the game didn't have sound. I tried to find many ways to solve the problem but I didn't find any solutions. I didn't use HTML5 audio…
Kaiser
  • 11
  • 1
1
vote
1 answer

Loading images from tablet local files with JSON

This is my first post here and I've got a big problem concerning the access of local file addresses on tablets. I'd like to load image files in a game by using AJAX to get a JSON file containing URLs of images. My problem is that I dont know if it…
Shapter
  • 13
  • 2
1
vote
1 answer

construct2 - How can I have it read a string and react differently to each character?

I would like to have an array of strings, then make a for each loop that goes through each string, but then also I want it to read each character and react in different ways: If char = 0 shoot left, if char = 1 shoot right, that sort of thing. So…
Santiago Gil
  • 67
  • 1
  • 9
1
vote
1 answer

Webstorage in Windows 8 html5/JS apps

This has been a hard question for me to track down. I am creating a windows 8 HTML5/JS app to be deployed into the windows 8 marketplace. I am using the construct2 game engine to generate the html5/js code. In a traditional Html5 website if I was to…
Dylan Hayes
  • 2,331
  • 1
  • 23
  • 33
1
vote
1 answer

(Scirra) AJAX Request to Array

I got a problem with the Construct 2 Editor of Scirra. I don't really know if this is the right place for this but, I searched for an answer a long time. I get data of an AJAX Request, which looks like this: {"data":[ [625],[500] ], [ [400],[500] ],…
MCSell
  • 215
  • 6
  • 17
1
vote
1 answer

Multiple game frames in construct 2 for new levels?

Hi there I'm new to Construct and have tried out a few platformer tutorials. I'm getting to grips with setting variables and collisions, I'm now at the stage where I want to start adding new levels. What the best way to effectively go to a new…
huddds
  • 1,045
  • 6
  • 27
  • 47
1
vote
2 answers

Running Construct 2 for Mac

I would like to run construct 2 on Mac. It seems that construct 2 can only run on windows. Is there any solution for Mac? Need some guidance on this....
lakshmen
  • 28,346
  • 66
  • 178
  • 276
0
votes
0 answers

setting up cordova cli for android build from construct 2 project

I always find a problem when I want to build android application in cordova cli from project construct 2, can you guys help me to prepare my cordova cli properly(step by step), complete from the initial export of the project in cordova until it…
0
votes
1 answer

Construct 2/3: Continuous Loop Function?

Using Construct 3 to build a game. I want to change this function in the code below (which just randomly assigns a frame count in an array) to something that isn't random, but instead loops in order from indexes 0 to 10 and then back to 0 and then…
Michael Teller
  • 71
  • 1
  • 2
  • 7
0
votes
0 answers

Cordova exported APK failed to run on my devices

I have some old games created using construct2 I want to export them to android but in construct you can only export to cordova when I export a game using cordova this is the error I get on my mobile phone when I run the…
0
votes
1 answer

Can we write and read files on the disk using NW.JS in Construct 2?

I am making a program on Construct 2 to write a file on the disk, and store it in an accessible location. After that I need to read it back. It is possible doing that using Construct 2 & NW.JS in it? If yes, then do we have a sample .capx file?
Kshitij
  • 5
  • 2