brunopalermo's Forum Posts

  • Maybe a three dimensional array will do. I'm not aware of how complex is his array structure.

    In case you need to use JSON. Check this entry at the manual, which is very straightforward and has a link for a working project that will really help you understand. If you still have trouble, just ask here. I've been using JSON for some time now and I'd be happy to help you.

    Cheers!

  • Hey madmandom!

    I did a quick implementation of a local highscore table that you can download here. It may be what you need.

    Hope it helps.

    Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't think it's possible... Why don't you use a JSON? It can store several arrays and all level configurations you want or need. :)

  • I would suggest you use a software like FreeTar Editor to generate an array that'll control your traps. You can use one channel for each trap pattern, so, for instance, if a trap goes on with the drums, just mark the drums on a channel and if another trap goes with the vocals, just mark its channel according to the vocals.

    Hope this helps.

    Cheers!

  • Now... If you want to use a variable to determine which array to access I'm not sure this is possible. But you could use a JSON or a Xml object.

  • Im not sure I understand what you need, but you can easily access arays using variables by using the variable as parameter for the Array.At() function.

    For instance:

    Let's say I have an array with levels and their titles and rewards.

    [

    ["Welcome Level!", 10],

    ["Adventure Time", 25],

    ["Find the Treasure", 60],

    ["Trouble Ahead", 130],

    ["Final Battle", 270]

    ]

    And a variable level that controls which level the player is.

    Array.At(level, 0) would return the title for the current level.

    Array.At(level, 1) would return the coins earned for finishing the current level.

    So, when players are in level 0, they'll return thet title "Welcome Level!" and the reward 10 coins.

    Hope this helps.

    Cheers!

  • Not sure if that's what you're trying to do. I assumed you want to create only in a grid, not any X and Y.

    Download File

    Cheers!

  • A file would help...

    But speaking in general, even if an enemy is in a family you can still check types of enemies or specific instances individualy.

    Without seeing a file to understand the specific problem you're having is very difficult to give you advice on that. Sorry.

    Cheers!

  • I'm not sure I understood what you're trying to do, but here's an example.

    In this example I have two areas (spawn and drop). You don't have to define with sprites, as I did. They may be defined by their X and Y instead. When you drag an object from Spawn Area it spawns another object randomly positioned inside that area. When you drop an object it checks if it's over the Drop Area. If that is the case, the object is flashed and randomly positioned inside Drop Area, if not,the object is destroyed.

    Let me know if you have any questions.

    Cheers!

  • You can always use the objects UIDs.

  • Thank you very much for the pointers. I'll give it a try!

  • I'll look for a CocoonJS tuitorial, then... If you have any you used and worked, please, let me know.

    Is it ok in terms of performance?

  • Yeha. I've seem some old posts talking about CocoonJs, but since they suggest Cordova CLI at Ouya's dev page, I thought it would be wiser to follow their suggestion. :/

  • Hi everyone!

    I know Ouya is a long dead platform, but I just started playing with it out of curiosity and I'm having some trouble exporting for it. So, if anyone here has ever managed to do it, I'd love to get some pointers.

    Right now I'm using the Virtual Controller example, by the Ouya team, as a hello world. After much trouble I managed to run it on the console but I'm having a problem: the controller buttons are not recognized. When I try the thumbstick or the d-pad the screen kinda moves, which was not supposed to happen, like if I was browsing it as a page. Also, buttons retain their basic interface functions, so, if I press the A button, it leaves the application. Also, the plugin initialization routine doesn't return anything, nor success neither failure.

    I'm exporting the app as a HTML5 page and packaging it using Cordova CLI. Here are the steps I'm taking:

    • Create a folder using cordova create;
    • Adding android using cordova platform add;
    • Adding the SDK using cordova plugin add;
    • Running the app using cordova run.

    If anyone can point out any courses of action or let me know what I'm doing wrong, it would be amazing.

    Sorry for the long post and thank you in advance.

    Cheers,

  • Sorry to revive such an old post, but I've been doing some testing on this trying to come up with a compass and it seems to me the alpha value is relative, not absolute. That is, it shows the rotation in relation to an arbitrary point set, aparently, when the call is first made and not the the actual North itself.

    Am I right? Is there any way to get the absolute North in Construct?

    Thanks in advance.