justifun's Forum Posts

  • So I'm trying to use this with json data that's been put into an array, and its reporting back this.

    [c2array] is a boolean : True

    [size] is an array of length: 3

    +---[0] is a number: 1

    +---[1] is a number: 1

    +---[2] is a number: 1

    [data] is an array of length: 1

    +---[0] is an array of length: 1

    +---+---[0] is an array of length: 1

    +---+---+---[0] is an object

    +---+---+---+---[Username] is a string : "Justin"

    +---+---+---+---[Password] is a string : "Test"

    +---+---+---+---[objectId] is a string : "NYulexXQuC"

    +---+---+---+---[createdAt] is a string : "2014-09-15T17:44:35.614Z"

    +---+---+---+---[updatedAt] is a string : "2014-09-15T17:44:35.614Z"

    But i can't figure out how to access the values of the data eg; username, password etc.

    eg: JSON.Value(0,"Username") is undefined.

  • There's a slightly quicker way to force the amazon fire tv to launch your game after side loading it. According to the official documents here: https://developer.amazon.com/appsandser ... g-your-app

    To send a launch intent to your app on the Amazon Fire TV device, use this command, where com.amazon.sample.helloworld is the package name of your app, and MainActivity is the name of your app's primary activity.

    adb shell am start -n com.amazon.sample.helloworld/.MainActivity

    ADB responds with a message similar to this, and your app begins running:

    Starting: Intent { cmp=com.amazon.sample.helloworld/.MainActivity }

    I can clearly see where my game is listed using the command

    adb shell pm list packages -f

    But what is the C2/XDK Equivilant of "MainActivity" in that example code?

  • russpuppy - any luck testing out the gamepad plugin?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So i think i found a bug. I'm using an input field as a password typing area, and whenever i type the number 1 or 2 or 3 on my keyboard, no data is entered into the field all the other numbers work fine.

  • rexrainbow

    Thanks for your help with all of this.

    Is there a way to see an object's nickname in the debug preview?

  • rexrainbow - Is it possible to change the nick name of an object at runtime?

    If not, how do you use that first action "assign nickname" then?

  • you can pin the items to each other, and move the main one, the rest will follow

  • rexrainbow - I think i found another bug with the nickname plugin

    see attached image

    The nickname ends up blank It never gets assigned to the object.

  • Thanks Rex! You're the best!

  • I would love to have mouse wheel scrolling support in the add event/action window.

    win 7 64

  • It would be handy in a situation where you had a spaceship for example, with many parts that you could build onto it, and to add more and more pieces upon pieces like lego. If you had a long rectangular piece for example, and wanted to attach it to the ship's hull, but then also have another piece on the end. And also wanted to be able to rotate that piece around to any angle.

    The only other way around i could see would be to have an invisible helper object, and make each piece a child of that helper object.

  • Hi rexrainbow

    Do you have any example files of your Treenode plugin? I can't figure how to to get it up and running and can't find any examples files in your skydrive.

    Thanks

  • rexrainbow

    Oh good, i thought i was going crazy trying to understand why what i had didn't work. glad it was just a bug!

    Thanks for looking into it.

    keep up the great work!

  • rexrainbow

    I'm not very good at math, so i was trying to figure out how changing those values affect how the objects move.

    for example:

    It appears that increasing "A" makes the objects attract stronger to one another

    what does "n" and "m" do?

  • Nickname question

    In this example file i put together, it creates 10 instances of an object, then creates 10 objects based on a nickname and puts them into a family.

    When i try and use the "Pick instances with matched substring in family " command to effect all of the created objects, it only effects the last one.

    But if i use the "Pick Nickname instances in family" it will effect all of them.

    Is the "matched substring pick not working? Or more likely i'm using it incorrectly.