Log Object with new browser object

0 favourites
  • 3 posts
From the Asset Store
Kids Game
$49 USD
New Sounds Added Update: 115 new sound effects added for no additional cost!
  • Hi everybody,

    Even though I've beeen developing with construct for a while now I've never asked a question here before. So here goes:

    With the old browser plugin described here scirra.com/forum/log-text-Objects-to-chrome-console_topic47859.html I could easily log objects like arrays to the browser. With the new Construct browser object I can't figure out how to do this. I'm not allowed to just log the object and printing as JSON is not very readable.

    Any ideas?

  • The plugin you refer to is a third part plugin.

    The built in Browser plugin could allow you to do so with this action I think:

    <img src="https://dl.dropboxusercontent.com/u/36472942/construct/forumhelp/log_array_asJSON.PNG" border="0" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yeah I tried that, see in my above post: "With the new Construct browser object I can't figure out how to do this. I'm not allowed to just log the object and printing as JSON is not very readable."

    My simple array comes out looking like this, pretty unreadable compared to the third party plugin's version. Was just wondering if there was another way. (here's what my simple 2D array looks like in JSON" {"c2array":true,"size":[12,2,1],"data":[[[1],["B"]],[[2],["B"]],[[3],["B"]],[[4],["B"]],[[5],["B"]],[[1],["B"]],[[7],[0]],[[8],[0]],[[9],[0]],[[10],[0]],[[11],[0]],[[12],[0]]]} )

    Nevermind, found out I can use go to layout by name and then enter a variable for the question below. In my case: Go to Layout QContent.At(currentQIndex,2)

    Also, is there a way to dynamically load a layout? I have a quiz game where each question has a questiontype, each type has its own layout. So I've stored the questionnumbers and their layout types in an array and want to load the appropriatelayout as mentioned in the array to be loaded.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)