How do i find "Javascript Alert"

Get help using Construct 3!

Post » Sat Jul 01, 2017 9:59 pm

Construct 2 html5 export comes with complete index.html... but in Construct 3 the index.html only is this:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Meu Jogo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>

<link rel="manifest" href="appmanifest.json" />


<link rel="stylesheet" href="style.css"/>

</head>
<body>
<div id="fb-root"></div>

<script src="c2runtime.js"></script>
<script src="start.js"></script>
<script src="register-sw.js"></script>
</body>
</html>
B
6
S
1
Posts: 14
Reputation: 378

Post » Sun Jul 02, 2017 1:09 am

Image
I need to get this message that appears when I start the application.
Does anyone have any idea how to do this?
B
6
S
1
Posts: 14
Reputation: 378

Post » Mon Jul 03, 2017 7:33 pm

Browser.ExecJS() should do the trick from within C3. Add the Browser object to the game first, then you will have access to anything you want to do in javascript.

Edit: There is a browser.alert built in as well.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
46
S
11
G
20
Posts: 363
Reputation: 14,199

Post » Tue Jul 04, 2017 12:48 am

@cjbruce

I think he's trying to run a C3 html5 export using an "unsupported" delivery method.
He wants to remove the alert, but it's no longer located on the index.html.
A reasonable restriction for the free version.
In a paid version, with no language about the end product... then there might be some issues.
Image ImageImage
B
168
S
50
G
163
Posts: 8,224
Reputation: 105,067


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests