luckyrawatlucky's Forum Posts

  • comment for bump

  • below is my screenshot

    in this screenshot i have try to give

    when click pause button other button comes and hide pause and when click play, reload etc. then spawn is happening

    to stop this i have used time waiting

    this is working good in browser

    but when previewing in mobile using intel XDK

    time waiting is not working

    means when i click play button bullet is spawning

    https://www.dropbox.com/s/epn3mqc44ali8 ... e.jpg?dl=0

  • luckyrawatlucky

    This has been saved using version r200.

    You must test using latest beta version - r215 Bug Reporting Requirements - to ensure that the bug hasn't already been fixed.

    oh! thank you so much

    i was so frustrated with this problem now when i updated this its working thank you once again

  • ok thanks

  • my mobile is karbonn titanium S5plus 4.2 jelly bean

    exporting for preview using croswalk android option

    Problem Description

    click on level

    dosn't going to level layout

    may be problem is not supporting my phone

    Attach a Capx

    https://www.dropbox.com/s/n9qq0r1s2rmlb ... .capx?dl=0

    Description of Capx

    This capx is a tutorials download from level select

    Steps to Reproduce Bug

    • Step 1 this is not a bug
    • Step 2
    • Step 3 etc.

    Observed Result

    should go next level if click level button

    Expected Result

    ____ What do you expect to happen? ____

    Affected Browsers

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

    Operating System and Service Pack

    Window 7

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

  • thanks brother

    thank you very much it really gud feeling getting problem solved

    i was about from two weeks in this point

    thank you once again

  • Foreach creates a loop that goes round and round for each x element it cycles through each line in the array.

    Condition allows us to restrict amount of lines/loops to a specific rule

    Our rule is x must be greater than 2

    Why 2?

    Because tutorial says if player attempts level he gets a 1, if he wins the level he gets a 2, if he wins and gets 1 star, he gets 3, wins and 2 stars, he gets 4 and if he wins and gets max stars he gets 5

    Its just a number.

    We know that 2 of the 5 is not stars so we want to subtract the 2 to get the remainder.

    Examples

    x = 3 player has 1 star 3-2=1

    x = 4 player has 2 stars 4-2=1

    x = 5 player has 3 stars 5-2=3

    So we loop through each x element that is greater than 2

    We add total x number to a total variable

    we also add 1 to count number of times it cycles (this is number of x entries that have stars.

    No we do the same. Total -2 = stars but I did it a litle different

    Total - (numberlevelswithstars*2)

    i have try this

    but result is below

    https://www.dropbox.com/s/ajsvwt1gxmhcd ... m.jpg?dl=0

  • thanks

    i'll try to grab it

    thanks again

  • seems complex

    can't understand

    i have to read this about many times to proper understand

  • here is the link

    i want to count total stars here

    https://www.dropbox.com/s/n9qq0r1s2rmlb ... .capx?dl=0

  • actually i want to count amount of stars in above linked tutorial

    i m new in construct 2 and not getting this point

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In select level tutorial when we set array x to

    max(2+stars,levelsat(currentlevel)

    then if i want to sum all X values then how do i do it

  • one thing more i have try in this

    set "count stars" to max(stars, levels.At(currentLevel)) - min(stars, levels.At(currentLevel))

    by doing this

    suppose we play two time first we get 1 star and second time we get 3 star

    when we get 1 star, 1 is added to "count stars"

    when we get 3 star, then

    max is 3 and min is 1 = 2 added to "count stars"

    now updated "count stars" is 3

    but problem comes when we play 3 times and we gets 1,2,3 stars

    .

    1st time we get 1 star

    1 added "count stars"

    .

    2nd time we get 2 star

    2-1= 1 more added to "count stars"

    3rd time we get 3 star

    3-1=2 adding to "count stars" this is the problem

    because when we play 3rd time i want to deduct 2stars

    .

    but 2 is not "max" neither "min"

    i don't know how to fix it

    or may be their is any other solution available

    or i m going wrong way

  • Ok

    suppose I have 10 level

    i m getting star on each level as per<B>level select tutorial</B>

    i have put

    if "stars" are > 0 add "stars" to "count stars"

  • yes i want total amount of stars

    i have did, but wrong, when level playing again

    suppose i get 2 stars and then i play again this level and gain 3 stars but it counting 5 stars.

    m not getting this point how to do this

    pls suggest