Shaun Randle's Forum Posts

  • 4 posts
  • Hey 99instancs2go! you're and absolute legend mate! this is extremely comprehensive and must have taken a long time to write up so thank you very much for putting the effort in, the construct community always delivers.

    While this has some information in here that I still don't quite understand fully just yet, I got so far down and it started to not be applicable to what my specific game framework is, however, i did manage to use this information to achieve my desired effect. Mainly that you can take a global variable and drag it into a condition to convert it to a local variable!

    using this local variable (as a substitute for the "this group name" from my OP) I can now repeat my symbol conditions and change only the local variable in each condition and not have to go into each sub event and change their individual conditions. PERFECT!

    ____if array at position 0,0 = symbol < --- the local variable

    ____if array at position 1,0 = symbol

    ____if array at position 2,0 = symbol

    So if any of the other newbies out there read this, then that's a quick way to not have to change all your sub events with the same conditions when you copy/paste.

    I actually haven't needed to use the rest of the post, just yet. As my code is working as intended just from this local variable.

    so I have,

    Set [local variable text] to symbol which = "symbol_01"

    if array value at 0,0 = symbol <local variable

    --then if array value at 1,0 = symbol <local variable

    ----then if array value at 2,0 = symbol <local variable

    -------then system [add coins] only trigger once.

    *[add coins] i have another array that stores the win values for each symbol.

    then all i do is paste. and change local variable to "symbol_02"

    Set [local variable text] to symbol which = "symbol_02"

    if array value at 0,0 = symbol <local variable

    --then if array value at 1,0 = symbol <local variable

    ----then if array value at 2,0 = symbol <local variable

    -------then system [add coins] only trigger once.

    SO long story short you can use a local variable to the same effect as a "this block(group) of conditions name" expression.

    All the information about parameters and return values is going over my head atm but is on my list to wrap my head around, i need to do some further personal research into those! again, thank you!

  • So, currently I have a system where I am checking a text value in my array.

    it reads like

    if array at position 0,0 = "symbol_01"

    if array at position 1,0 = "symbol_01"

    if array at position 2,0 = "symbol_01"

    these are within a group called "symbol_01"

    when i copy paste this code to adapt it for symbol_02, i need to click and replace every "symbol_01" with "symbol_02"

    what i really want is to be able to say

    if array at position 0,0 = "this groups name"

    so i can just change the name of the group and not have to go into every condition, or something to this effect. I have the personal license. Thank you for reading.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Great thanks! i read through a couple of tutorials but i didn't deduce that the server was free to use for my own projects! so that awesome. I think its just very overwhelming with the amount of options out there for this kind of thing. every tutorial or video has its own way of doing things. ill have another read through the tutorials with my new found knowledge and see if the penny drops. again thank you.

  • Hello im new to Construct 2 and i would like to crate an online 2 player game. All i require is a bit of information from some kind people that know what there talking about. Essentially i just want to set up something simple as a test first, if i can get 2 clients running and communicating with each other i will be pleased with myself. I am aware of the signalling server but i dont want to pay for it just yet. if possible im looking for a quick budget test. Im not that savvy but can i host a server from my home PC and using the power of the internet get a friend to connect so we can chase each other around for a bit? Ive heard that Socket.IO and Node.JS might be what i require but i dont really know what they are or how they work. or if there are other options. just a few key words or recommendations and i (google) will do the rest. thanks

  • 4 posts