deathangel1479's Forum Posts

  • Fall is not the problem. (Physic Behavior)

    The problem is to walk on a solid or solid like... I think thats currently impossible in this kind of game, isnt it?

    We need a upgrade on Physic for topview games. But nobody probably do this.

    Kyatric Yes, or a workaround. I have almost only workarounds...

  • I think everyone has his own methods.

    For me, globals are last resort.

    Instance variables are very usefull within layout. To identify instances and set/get instance status.

    If I have more instances frome same type to set to something, I use locals. Because you cant pick from same type twice.

    Finally, to have a database over all layouts, there are dictionary and array, but for me they are to inflexible, so I build my own.

    https://www.scirra.com/forum/plugin-behavior-directdata_t147493

  • The first question is unclear to me..

    The second question could be handled by layers depending on how you have your game set up..

    Player on collision with monster

    system compare two values player.layername = monster.layername

    > player destroy

    LittleStain Incredibly, you have solved my biggest problem without knowing it, thank you for .layerX, I dont seen it before!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I might be stupid, but if the nearest sprite for sprite1 is sprite2, wouldn't the nearest sprite for sprite2 be sprite1?

    In this picture it is, but not everytime.

    1------2---3

    Closest to 1 is 2, but closest to 2 is 3.

    Rollendice We also cant know why, if we dont see the code. Possible your sprite picking is wrong.

  • Sorry, its r206, so its a stable release, you can upgrade...

    Or you adjust the version in the projectfile, but maybe the project wont work anymore.

  • 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

  • > 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