miketolsa's Recent Forum Activity

  • That really worked but still while testing I am getting error in test mode while checking on IOS device ?

    I am getting a IAP error code 4983503 while checking it one IOS device ......

    Can anyone tell me is it common error while testing it in sandbox mode ? or am i doing something wrong ?

  • Thanks that really help me to sort out my problem & confusion tooo !!!

  • Using local storage is the easiest way and should work something like this:

    local storage set Item key = "PlayerCoins" value = (the name of your GlobalVariable)

    on start of layout - local storage get Item "Playercoins"

    on item get "Playercoins" - set GlobalVariable = int(localstorage.itemvalue)

    Thanks for quick refrence that helped me a lot .....

    so is playercoin a variable or integer or key ? as you want to set the global variable score to it am i right ?

    So if possible could you just report the same code using the table reference if possible as it would help me to understand much easily .

    also I think this two statement should be called in start of the layout .....

    local storage set Item key = "PlayerCoins" value = (the name of your GlobalVariable)

    local storage get Item "Playercoins"

    so is it necessary to call them randomly or just in a order to get the value of globalvariable to key playercoin ?

  • hi,

    I have another queries about using global variable & local storage ?

    In my game I have 20+ levels now I am using one global variable i.e. "score" .....

    So as i have 20+ levels & they are all using diff event sheets so how can I get all score to use single global variable "Score" & use local storage to save it ....

    So if anyone can help me use one global variable for all 20+ levels ....

    Mike

  • Using local storage is the easiest way and should work something like this:

    local storage set Item key = "PlayerCoins" value = (the name of your GlobalVariable)

    on start of layout - local storage get Item "Playercoins"

    on item get "Playercoins" - set GlobalVariable = int(localstorage.itemvalue)

    I got this working but still not getting two points .....

    As why are we using key to store the same value as in global variable & what is itemvalue used for ?

  • hi,

    I was just playing with local storage for some time but didn't uderstand the way it works also searched tutorial section, their wasn't any help there ......

    So thought to put my queries here .....

    So my purpose of using local storage is to save two different value ....

    Example -

    • Total Coin Earned (that would be used to purchased items from shop)
    • Energy ( A value that would be totally would only increase once a certain item is picked in a level ( but its not compulsary) )

    So I want to save both values side by side either using jason or array but have no clue how to use them . Also the total coin value would always increase or decrease based on game play & coin purchase from shop or decrease if the coins are used to purchase any inapp purchase ...... so in whole the total coin value is IMP .....

    But I have to store both values to unlock certain items later in game .....

    So if anyone can help me with this small problem .... or link me to few tutorials that would help me to get through this problems .....

    Mike

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • matrixreal could you please help me here .....

    as I am facing the same situation like rable did ?

    if you can share some light on this topic publicly then it would really help me & others out !!!

  • i think there should be some emulators inbuilt with construct2 as this is really a pain in a** to go through .....

    What others think ?

  • is there any tutorial as how to use IAP behavior ???

  • Just gave it a try but everything is worked except movement towards a particular sprite ....

  • You can go to - c2rexplugins.weebly.com

    & search Movement - angle - look for [behavior] rex_rotateto

    I think the above behavior would help you to control you angles & frames .... though you have to figure our using their help section .....

  • Dammmm I missed it ....

miketolsa's avatar

miketolsa

Member since 29 Mar, 2015

None one is following miketolsa yet!

Connect with miketolsa

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies