Calljs problem

Get help using Construct 2

Post » Mon Sep 02, 2013 5:51 pm

so need to set variable using Calljs. It's fine with numbers not with strings and JSON objects.
B
1
Posts: 4
Reputation: 133

Post » Mon Sep 02, 2013 6:19 pm

@themachine

I was having some troubles figuring out how do use this. So I will go over the best way that I figured CallJS pecularities. I wanted the real time clock for my game so it was a bit of effort :D


Browser.CallJS("
var data = [process your data here];
data;
")


1. Create a var to hold your processed data.
2. process your data in JS as you normally would
3. present the data variable by itself on it's own line.


anyways. if i'm wrong post what your trying to process and I'll see if i can help sort it out :D

B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests