BoneyCheng's Forum Posts

  • 3 posts
  • It still happens on r146, it happens at random for me.

  • I've been kind of thinking of the whole RPG element system. Anything that you want saved for a specific character, I would use as an instance variable for that sprite.

    And anything that would be used multiple times at different layouts/maps, you would set that as a global variable.

    By this, you would have multiple variables on one sprite, such as MaxHP, CurrentHP, MaxAtkDmg, etc.

    Lets say you want multiplayer, you would want to use a global variable to kill slimes, so that if different players kills a slime almost at the same time, it would increment the same global variable. Its generally how you want to design it.

    I don't know how the code is optimized in scirra, but an instance variable would be faster to use than a global variable in most cases.

    I hope i am making sense, but that is what i came up with after dabbling in construct 2 for awhile.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, all keycodes are the same, they are based off of the ASCII chart that you can pretty much be googled online (all hail our google overlords). Most programmers would use the HEX values and decipher them into binary for commands, but in scirra, im pretty sure they use the decimal value as a way to track the key presses (most likely all in capital letters).

    (A:) Dec value = 65, HEX = 41

    (B:) Dec value = 66, HEX = 42

    etc.

    If you do not understand how HEX works, instead of just numbers, it goes from 0 - F, meaning it counts down from 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F, and so on.

  • 3 posts