katzin's Forum Posts

  • Hello guys i want to create a random value but for some specific values.

    for example start at 30 and add 60 so the values should be random of 30, 90, 150, 210, 270, 330, 390 and 450.

    Thanks for all

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks a lot jeffige, the only way is to use localstorage.

    Im trying to convert all to localstorage but i have two issues.

    First one is localstorage only triggers when is called so if i check the item if exist on start of layout it only check on the start and when i go to other layout and come back is not going to check again right? so i need to add the everytick function?

    Secondly when the variables are loaded it takes like a second to upload and in webstorage that doesn't happened, know why and how to fix it?

    Thanks a lot.

  • Hello guys i worked on a game for about 2 years and i used in that moment the webstorage in order to save and retrieve variables.

    The thing is today i instaled the app of the game in the phone and is not working, looks like all the info with webstorage is missing.

    So..

    1. why is not working?

    2. Could it work in some way without changing the code?

    3. which are the options?

    Thanks and regards for your help.

  • there is not too much to add you need to try that... when the enemy animation attack is touching the player and the button is pressed the animation of counter show the counter animation and kill the enemy.

  • when enemy animation is showed and user press button appears the counter animation.

  • OMG dude, you are my hero, thanks a lot.

  • Hello guys,

    I have an issue when i try to create a sprite with random frame.

    so first i create the object and then i use sprite set animation frame to random(1)

    I tried with random(0) also with random(0,1) and i cant create sprites with random frame.

    Anyone can please help me?

    Thanks and regards.

  • Very good thanks !

  • I mean play atleast once in a day for atleast 5 consecutive days.

    I.e: jun 29, jun 30, jul 1, jul 2 and jul 3. (this should the worst scenario because have some days of the last month and some days of the new one)

    so if i have a variable called consecutivedays.

    the game should do something like this.

    compare last day variable with today variable.

    If: today (month and day) = saved (month and day) do nothing.

    if saved day diferent than today and today is 1:

    if month is Jul and saved is jun: add 1 to consecutivedays variable (need to do it for the whole 12 months u_U)

    else consecutivedays = 1 (reset)

    if saved month = today month and today is 1 greater than saved day: add 1 to consecutivedays variable.

  • i just want to give a badge or a gift when the player plays for example for about 5 consecutive days.

  • So the problem for this is to separate all the date and keep like the month and day, the real problem is when the consecutive days are between last days of the month and first of the next one.

    Its pretty hard xD

    Edited: for the first part (separate) i could use:

    left(text, count)

    Return the first count characters of text.

    right(text, count)

    Return the last count characters of text.

  • I tried to search it but i couldn't find a "badge" of playing for x consecutive days.

    I dont want the work / project done, i want to know how you guys could do it.

    Thanks and regards .

  • Nice puzzle game congrats.

  • Nice character

  • I gotta say I absolutely love seeing updates to your game and I am extremely impressed, such an extremely polished looking game. Have you ever thought about selling an SRPG template? Would love to see more come from C2

    Love it! like StarCS said... are you going to sell a template ?