deathangel1479's Recent Forum Activity

  • You can't change and also is not needed.

    In layout properties you can set the sheet, also the same sheet to more than one layer.

    I think its better, if you have code that is need in more than one layout, to make a seperate sheet and include it to the main sheet of you layers.

    But depends on the situation.

  • I have copied it from mine, but in my are many other things included.

    I removed them, but now it looks little stretched.

    I also have not adjust the angles perfectly until now.

    Hope thats no problem. You can adjust for yourself.

    I dont own the grafic, its only for testing...

    8DMovement

  • Cant test it, to show... Sorry.

    But may be that helps:

    Multi-touch

    The Touch object supports multi-touch. This is most useful with the On touched object and Is touching object conditions, which can for example detect if multiple on-screen touch controls are being used. This is sufficient for many games.

    For more advanced uses, the TouchID, XForID and YForID expressions can be used to track individual touches for different purposes. Each touch has a unique ID (which is an arbitrary number), and can be accessed using the TouchID expression in an event like On any touch start. The touch ID can then be stored in a variable and tracked using the XForID and YForID expressions. Finally comparing the TouchID in On any touch end indicates when that touch has been released.

    https://www.scirra.com/manual/119/touch

  • You play it every tick? Thats real fast... Your sound has a length smaller than 16ms?

    I think you need something like:

    if move = 1 and not playing currently - play

    if move = 2 and not playing currently - play other

    if move = 0 and currently playing - stop

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Remove all spaces from string ("\s" matches any whitespace, "g" = global, replaces all occurences):

    >

    >

    ramones where did you find a list of the flags? I can't find it anywhere. The doc on this is ridiculously thin..

    do you know how to concat the flags together? if I wanted to remove whitespaces and "-" dashes? or do I have to do it as separate Actions? I actually want to remove all non alphas... is there a flag for that?

    What?

    Google "regex" will give you more results than you ever can read...

    http://eloquentjavascript.net/09_regexp.html

  • Lets crack a nut with a sledgehammer.

    Project

    Plugin

    [
      {
        "genotype": {
          "name": "Car",
          "start_hp": "",
          "start_attack": "",
          "start_defence": "",
          "max_hp": "",
          "max_attack": "",
          "max_defence": "",
          "start_capture_rate": "",
          "max_capture_rate": "",
          "max_exp": "",
          "metamorphose_rate": "16",
          "base_level": "5",
          "types": "",
          "gender": "",
          "dna_gender": "",
          "dna_specie": "",
          "dna_variety": "",
          "max_strength": ""
        },
        "fenotype": {
          "nickname": "Car",
          "": ""
        },
        "status": {
          "hp": "",
          "pp": "",
          "held_item": "",
          "strenght": ""
        }
      },
      {
        "genotype": {
          "name": "Airplane",
          "start_hp": "",
          "start_attack": "",
          "start_defence": "",
          "max_hp": "",
          "max_attack": "",
          "max_defence": "",
          "start_capture_rate": "",
          "max_capture_rate": "",
          "max_exp": "",
          "metamorphose_rate": "18",
          "base_level": "5",
          "types": "",
          "gender": "",
          "dna_gender": "",
          "dna_specie": "",
          "dna_variety": "",
          "max_strength": ""
        },
        "fenotype": {
          "nickname": "Airplane",
          "": ""
        },
        "status": {
          "hp": "",
          "pp": "",
          "held_item": "",
          "strenght": ""
        }
      }
    ][/code:3t3bi5fp][url=https://www.jsoneditoronline.org/]Great JSON Site[/url]
    
    I would make it even a little bit different, but that's enough for now.
  • https://www.scirra.com/tutorials/807/how-to-read-an-xml-and-make-your-game-talk

    But its much easier, faster and needs less storage, if you work with JSON!

  • JLoc

  • Depends, IMHO behavior is easier to use and more logical, because json objects belongs to the instance and is easily accessible that way.

    What I mean is the ForEach/Count of the plugin works well for behavior object. They are not needed in behavior itself.

    If you have them in behavior, for example you need to pick the correct instance to have a valid foreach (handler,key,value), thats brings all mussy.

    They are like system expressions, you also dont have a foreach in every sprite to go through sprites, you have it in system and input the sprite, true?

  • I tried the behavior, so far it's usefull, but it's missing one important feature - get length of the object and forEach to go through the objects.

    I only builded a dataspace in behavior.

    The tools are in the plugin. You think it make sense to have it in behavior, so in every instance?

  • So, I added a behavior.

    Works like the plugin...

    I add infos later.

    Now for this its easier:

    instance.DirectData.Set("firstpath,secondpath","hello")

    or

    instance.DirectData.Set("firstpath","{""secondpath"":""hello""}")

    ------------------------------------

    Sort I have never needed, will look for it.

deathangel1479's avatar

deathangel1479

Member since 16 Feb, 2015

None one is following deathangel1479 yet!

Trophy Case

  • 9-Year Club

Progress

9/44
How to earn trophies