Can every Construct 2 game run offline ?

Discussion and feedback on Construct 2

Post » Sat Sep 01, 2012 10:55 pm

That's a question I was wondering since I guess Construc 2 games are calling external functions. Or maybe I am mistaken....

B
20
S
9
G
4
Posts: 197
Reputation: 4,080

Post » Sun Sep 02, 2012 2:56 am

Indeed, every C2 game can run offline after being downloaded once.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Sep 02, 2012 7:46 am

As long as it is not using AJAX to contact an external site.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sun Sep 02, 2012 10:46 am

So it is possible to embed little construct 2 html5 modules in html pages baked all together in a booklike app sold in the app store ?

Which code should I use to embed a construct 2 html5 module in a html page ?
B
20
S
9
G
4
Posts: 197
Reputation: 4,080

Post » Sun Sep 02, 2012 8:18 pm

@Laurent
Well, not exactly sure what you mean by "a construct 2 html5 module", but the index.html that's exported by C2 is (of course) a web page that embeds the C2 runtime. Take a look at it. Here are the relevant LOC:
[CODE]     
// Start the Construct 2 project running on window load.
jQuery(document).ready(function ()
{
// Create new runtime using the c2canvas
cr.createRuntime("c2canvas");
});
[/CODE]
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Mon Sep 03, 2012 9:30 am

C2 can run offline.

for your book project, i was thinking of doing something similar, but the dilemma i came across is that i have no control when i can load my assets. all artwork and music and sound are loaded at the very start.

this is good for small books with 10 pages, but story books with lots of artwork and 30 pages, this could be overkill for mobile devices.

any thoughts?
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Mon Sep 03, 2012 1:01 pm

@bjadams: @Laurent Wouldn't project files do the trick ?
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Sep 03, 2012 1:21 pm

@bjadams - C2 does not load any sound or music on startup at all. It streams music and loads audio on demand.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Mon Sep 03, 2012 3:04 pm

Ashley thanks for the clarification.

@Kyatric: Project Files seem to be what I was looking for. thanks a lot, I will give my project another thoughtbjadams2012-09-03 15:07:05
B
41
S
11
G
4
Posts: 428
Reputation: 7,356

Post » Mon Sep 03, 2012 3:39 pm

@ Velojet : Thanks, yes, that what I meant, embending in a html page an index.html generated by Construct 2.

To be perfectly clear, I plan to use 3 tools :
- Tumult Hype (runs on OSX http://tumult.com/hype/), a html5 wysiwyg creator to create the html pages that will compose the ebook
- Construct 2 to create small animated and interactive module that will be embeded in pages created by Hype. Im may need modules to communicate between them, exchange variables...
- Baker Framework (http://bakerframework.com/) to compile the pages and turn the project into a ios app.

And since I'm not really into programmation, I try to understand how I can manage to mix all that together...
B
20
S
9
G
4
Posts: 197
Reputation: 4,080

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 12 guests