newt's Forum Posts

  • Well nobody is saying stop helping people figure out how to do stuff.

    Asking for a complete game you can modify, and make money off of?

    Yeah good luck with that.

  • Why not go with Tizen? They just added support for that this last build.

  • Well yeah that presents a new problem, but you could, in theory, make a list of the distance needed for each angle.

    Edit:

    let me be clear. I'm talking about not using any portion of the platform behavior.

    Rather making your own movement with trig using the layout angle, and the players x, and y.

    x = playerX + cos(layout.angle) * distance

    y = playerY + sin(layout.angle) * distance

    All this would be doing is altering the distance based on how the player acts.

  • Well you would have to go with a different method otherwise.

    I mean you cant have the platform movement without the platform movement physics.

    The best I could give you is to make your own custom movement with trig.

    Its the same as rotation around a point, you're just clamping it to a radius of a circle.

  • Well its not bad considering you're rolling around on a polygon rather than a circle.

    You could probably smooth that out a bit using anglelerp()

  • Whats wrong with a function, and/or a wait?

  • Bumping for sanities sake.

    Or should I expect some other method to parse json soon?

  • OK, well that could have gone worse I guess.

    I found a bit of code, and modified it:

    Browser.ExecJS("var jsontext ="& AJAX.LastData&";"

    &"var image = JSON.parse(jsontext);

    document.write(image.avatar_url );)")

    Where supposedly that turns the string into an object with one of its key pairs being avatar_url.

    That however returns an error.

    Again I think my problem is what to do to get the return.

    No idea if document.write is the way to go, or if I'm even in the ballpark with the json.parse.

  • OK so I should treat Browser.ExecJS(Javascript) as a value.

    I'll give that a try. Thanks

    That's more of a warning than an affirmation.

  • That's a little too vague to do anything with.

    It would probably be best to make an example capx and load it up.

  • I was wanting to try to parse some json with json.parse() using the the new browser object execute script, but I dont see how to get the return back into C2 in a useful manner. Is there an expression I'm missing?

    Also any idea's on how to deal with shoving the results into a dictionary, or webstorage?

    Specifically a return with multiple values.

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How to deal with server side scripting on NodeJs?

    An editor like C2 to deal with creating server logic would be.. um well incredible.

  • Hey Now

  • The main part of the preloding makes WebGl. If Adobe Edge doesn?t support WebGl ...

    Wat?

  • You should probably take a look at Spriter.