luckyrawatlucky's Forum Posts

  • ohh yes yes yes yes yes

    .

    i got the point

    yes i got the point

    .

    .

    thank you friends

    .

    .

    actually when you say

    LocalStorage - Set key 'playercoins_key' to playercoins

    then i thought its already written

    then why you saying it again

    .

    i didn't get that point

    .

    .

    now when you say UPDATE

    i just copy above action

    and its working

    thankyou friend

    thanks again

    .

    its my first step to saving game

    further have many points to ask but not NOW but'll later

    thanksssssss

    This means that you have to save the variable after each change of it.

    I already mentioned above how you can save it. Jusr add this after you had updated the coins.

    Regards

    I am a non-programmer

    I don't know anything about programs

    but now with the help of construct 2 now i can make games myself. It feels like awesome

    but most of things are there that we non-programmers can not understand, may be its only me

    .

    .

    expression are very hard to understand

    there are a lot of expressions I don't know what they are, and what they can do

    .

    may be expression are easy understandable for a programmers

    .

    .

    I am from India and my English is not so good may be that is the reason

    .

    i have seen too many tutorials their are lots word words that I can't understand

    .

    for example

    .

    what is Json

    what is string

    math expressions are totally out of my mind

    in math expression their is 'abs' expression what says calculate absolute (positive) value of a number

    what is absolute value or positive value, and how can i use it, I don't know

    .

    .

    i have take about 1 month to understand that what are the variables and what they can do

    .

    when i was new in construct 2 variables makes me upset because i was not understanding

    when i got a little about variables then i saw instance variable

    i was going to give it up

    but i decided to read tutorials over tutorials

    i have read lots of tutorials related to variables

    thank GOD

    now i got what they are

    .

    but still there are a lot of things that i have still did't get

    .

    now i in saving game progress

    no tutorials is helping me to understand it

    .

    there is save & load, local storage, web storage

    but i am not getting it

    .

    i don't know how much time it will take

    .

    .

    Thanks to all members who answered my questions

  • Kyatric

    can you explain it in simple way

    actually my English is not so gud

    .

    what does it mean

    ''but at no point did you save the value of this variable to the key.''

    .

    i have just add coins to check how its working

    so pls tell me how can i add coins to variable

    Yes, and the part you added is missing the fact of saving some informations.

    The default capx does check on start of execution of the game if a key exists.

    If it doesn't, it creates a default value and creates the key,

    Otherwise, it sets a global variable value to the value contained in the key.

    Then you added a modification of the global variable, but at no point did you save the value of this variable to the key.

    So the modification is lost each time you execute the game and only loads the "default value" which is contained in the key.

  • thanks nimos100

    i am always a fan of those people who believes in help others

    when some good people help me and make my life easy then i become crazy for making him my friend

    i really hearty appreciate you because you guys are making us a stepahead

    .

    dear friend

    i have one question now

    local storage saves variables in devices or PC

    but

    Is save & load, save data on devices too??

    .

    actually i have made a levels game

    and now i have no idea how to save

    i should just use save & load or should use local variable

    if local then how

    i have followed some tutorials

    in which

    first find key

    if find then get key

    if get key then set key

    .

    this is i have done but it never saves anything

    may i am somewhere wrong

    but i don't know where

    .

    my screenshot of testing save

    dropbox.com/s/gkz6kdb06pfm7bn/sample%20copy.jpg?dl=0

    .

    i have used this tutorials and download capx

    scirra.com/tutorials/1461/how-to-use-the-localstorage-plugin

    .

    i just add score to coins in this file for checking it is working or not

    but it is not working

  • I am a non-programmer

    I don't know anything about programs

    but now with the help of construct 2 now i can make games myself. It feels like awesome

    but most of things are there that we non-programmers can not understand, may be its only me

    .

    .

    expression are very hard to understand

    there are a lot of expressions I don't know what they are, and what they can do

    .

    may be expression are easy understandable for a programmers

    .

    .

    I am from India and my English is not so good may be that is the reason

    .

    i have seen too many tutorials their are lots word words that I can't understand

    .

    for example

    .

    what is Json

    what is string

    math expressions are totally out of my mind

    in math expression their is 'abs' expression what says calculate absolute (positive) value of a number

    what is absolute value or positive value, and how can i use it, I don't know

    .

    .

    i have take about 1 month to understand that what are the variables and what they can do

    .

    when i was new in construct 2 variables makes me upset because i was not understanding

    when i got a little about variables then i saw instance variable

    i was going to give it up

    but i decided to read tutorials over tutorials

    i have read lots of tutorials related to variables

    thank GOD

    now i got what they are

    .

    but still there are a lot of things that i have still did't get

    .

    now i in saving game progress

    no tutorials is helping me to understand it

    .

    there is save & load, local storage, web storage

    but i am not getting it

    .

    i don't know how much time it will take

    .

    .

    Thanks to all members who answered my questions

  • what is the difference between

    **save & load** action and **local storage & WebStorage**

  • but this is totally your file that i have download

    i have just added a bouncing ball and with every bouncing add 1 to player coin

    .

    i have done nothing with with this file

  • i have already read this post

    i have downloaded file too

    .

    your have use local storage for coins

    but when i create sprite in your file and adding coins to variable it never saving its process

    after reload

    game starting from 0

    may be m not getting proper

    here is screenshot

    dropbox.com/s/gkz6kdb06pfm7bn/sample%20copy.jpg?dl=0

  • I have variables

    .

    i have level selection

    .

    i have character selection

    .

    .

    pls tell me how could i save all these, for devices and desktops both

    ..

    .

    can you give me any example of doing this process

    What do you actually mean with game progress? Just a few variables or/and the current position?

    The easiest way would be the Save/Load SaveGame function. Otherwise use an array and save the array in the LocalStorage.

    Regards

  • Pls tell me friends

    how to save game progress

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dropbox.com/s/woxx731vwzqud4z/sample.capx?dl=0

  • Problem Description

    1) I have made a level game. When i Emulating it on Intel XDK then i get problem in level section, In some devises game is working properly and in some devises levels not working properly if i finish 1st level it unlocks 2 next levels automatically

    1 or 3rd level icon is unlocked and 2nd level is showing locked but by clicking on 2nd level its playing

    why this is not working properly in all devices

    2) I have added Admob here but not showing any Advt in preview

    Attach a Capx

    dropbox.com/s/woxx731vwzqud4z/sample.capx?dl=0

    Description of Capx

    This capx is working fine in Chrome in Preview

    but not working properly in the time of emulation with Intel XDK

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    ____ What happens? ____

    Expected Result

    ____ What do you expect to happen? ____

    Affected Browsers

    • Chrome: (YES/NO)
    • FireFox: (YES/NO)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    ____ Windows 7 ____

    Construct 2 Version ID

    200 and 212.2 both

  • I have made a level game

    .

    when i Emulating it on Intel XDK

    then i get problem in level section

    .

    in some devises game is working properly and in some devises levels not working properly

    if i finish 1st level it unlocks 2 next levels automatically

    1 or 3rd level icon is unlocked and 2nd level is showing locked but by clicking on 2nd level its playing

    .

    why this is not working well in all devices

  • I have created AdMob account and created a ad unit ID

    i pasted this ID to

    Construct to

    Banner ID (Android)

    Test Mode True

    Overlap Yes

    .

    .

    Now what

    .

    if i do preview in chrome

    .

    i do not getting any advertisement in preview

  • dropbox.com/s/woxx731vwzqud ... .capx?dl=0

    luckyrawatlucky - please check your link.