aguzz's Recent Forum Activity

  • I would like to know how do I get access to arrays inside the game from outside using javascript.

    Exploring the game runtime, I was able to access global variables using `c2canvas.c2runtime.all_global_vars` but it doesn't seems possible to access an array the same way. Any thoughts?

  • There isn't a way to set this up before starting the game?

  • I would like to know how do I change the initial position of the game screen like this.

    <img src="https://www.evernote.com/shard/s151/sh/fd98c141-66b9-41ec-8268-7325ba908f4e/abb623741265d8d3d2478e48d8841858/deep/0/Pixel-Editor-PixieEngine---Create-Games.png" border="0" />

  • I just solved in this way

    <img src="http://img560.imageshack.us/img560/7310/3efr.png" border="0" />

    I don?t like the solution but it that way I got all data from my array came under the map parameter.

    It would be great if anyone knows a better way to accomplish this, share it.

    There was no problem with the size of json, I tried [150, 150, 5] size and there was no problem.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yep i know i cant pass json as a query string, but maybe there was some way to send 'data' on a variable. But you are right even if that was possibly, maybe it exceed the query string length limit.

  • I need to send data on a variable as if I was doing

    "http://myurl/maps?map=mapdata"

    in order to receive it on my server as

    map: mapdata

    Is there any way to do this?

    That's how i'm using it

    <img src="http://img706.imageshack.us/img706/9765/yzm1.png" border="0" />

  • I just realized that i'm receiving the json like this because is getting taken as the params name, if there is a way to include the ajax post's data into a variable name maybe that will solve my problem.

    Is like i was sending

    "{"c2array":true,"size":[3,3,1],"data":[[[0],[1],[2]],[[1],[2],[3]],[[2],[3],[4]]]}" => nothing

    instead

    "data" => {"c2array":true,"size":[3,3,1],"data":[[[0],[1],[2]],[[1],[2],[3]],[[2],[3],[4]]]}

    You know what I mean?

  • That is sent from a mobile application to my rails application:

    {"c2array":true,"size":[3,3,1],"data":[[[0],[1],[2]],[[1],[2],[3]],[[2],[3],[4]]]}

    But for some reason I'm getting the request like this:

    {

    "{\"c2array\":true,\"size\":"=>

    {"3,3,1"=>

    {",\"data\":"=>

    {"0"=>

        {","=>

          {"1"=>

            {","=>

              {"2"=>

                {","=>

                  {"1"=>

                   {","=>

                      {"2"=>

                        {","=>

                          {"3"=>

                            {","=>

                              {"2"=>

                                {","=>

                                 {"3"=>

                                    {","=>{"4"=>{"}"=>nil}}}}}}}}}}}}}}}}}}}},

    "action"=>"create",

    "controller"=>"maps"

    }

    I need to save it in my database, but I honestly do not know why that json is deformed in this way or how I can treat it for what I need.

    Note: Both params 'action' and 'controller' are part of my framework so the problem is just the way my json arrives.

  • You're using the "Regenerate Obstacle Map" action at the wrong time.

    Each time you add an obstacle, you have to regenerate the obstacle map and find the right path again.

    Like that:

    Example

  • Hi! I started the year developing Browser Games on Flash with AS3 but with the death of this on the web () i decide to start developing on HTML5 which is much more useful when it is the consistency of what we are talking.

    Good dev!

aguzz's avatar

aguzz

Member since 13 Nov, 2011

None one is following aguzz yet!

Connect with aguzz

Trophy Case

  • 13-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies