Javascript Commands

Discussion and feedback on Construct 2

Post » Mon Sep 05, 2011 11:54 pm

Is it possible to run JavaScript commands from inside a project?

Jason
B
18
S
7
G
5
Posts: 62
Reputation: 4,410

Post » Mon Sep 05, 2011 11:55 pm

You're looking for the eval() method:

http://www.w3schools.com/jsref/jsref_eval.asp

Currently this isn't implemented yet but someone might make a quick plugin for it. You should be wary using it if you're planning on submitting your games to certain arcades/other websites as many will for good reason disallow functions such as this for security reasons.Tom2011-09-05 23:56:59
Image Image
Scirra Founder
B
124
S
37
G
25
Posts: 3,945
Reputation: 44,897

Post » Tue Sep 06, 2011 1:16 pm

An alternative is to make a plugin (written in javascript) that makes the javascript calls you need.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Construct 2 General

Who is online

Users browsing this forum: 99Instances2Go, blackhornet, shinichild, TRMG and 19 guests