CGamez's Forum Posts

  • Hey,

    I want to show you my newest minigame creation with C3:

    Name: Idle Mons

    Platform: Web (Android-Version coming soon)

    Genre: Clicker, Idle

    Engine: Construct 3

    Link to the game:

    https://www.kongregate.com/games/CreativeGamez/idle-mons

    In the game you need to defeat pokemon-like monsters.

    To deal damage you need to upgrade avatars to do DPC (Damage per Click) and DPS (Damage per Second / Idle Damage). From every bossfight you can drop monsterpoints to collect monsters and evolve them. Upgrade artifacts and skills to do even more damage.

    Have Fun!

  • Hey,

    thank you for the help!

    So the response from the AJAX-Call should look like this?

    {"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[["{\"c2array\":true,\"size\":[10,1,1],\"data\":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}"]]]}

    And then I can do this:

    myArray = load from JSON string AJAX.lastdata

    myArrayInArray = load from JSON string myArray.At(9)

    Should this work?

    Best regards and thank you!

    Edit:

    Tested it like described above and it worked :)

    Thank you for the help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I have a question to Arrays in C3:

    I made a function to save some Userstats in a mysql database.

    To load these data, I just make an AJAX request and the answer will be a C3-Array like this:

    {"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}

    So I do something like this:

    "myLoadArray = load from JSON string AJAX.lastdata"

    Then I can access all the data from the "myLoadArray".

    This works fine.

    But now my problem:

    I also save complete arrays...

    For example in array.at(9) I stored a full array, then it would look like this:

    {"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[["{"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}"]]]}

    And this doesn't work. I pretty sure the problem are the quotation marks.

    But how can I fix that? Working with "'" + """ like this:

    {'c2array':true,'size':[10,1,1],'data':[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[['{"c2array":true,"size":[10,1,1],"data":[[[7]],[[6]],[[7]],[[3]],[[7]],[[0]],[[7]],[[0]],[[6]],[[0]]]}']]]}

    also doesn't work...

    Thanks for your help!

  • Thanks for the help, I just fixed it...

    I did a mistake with the access-control URL in the php-file...

  • Hello,

    I have a problem in my newest project:

    I post data with the AJAX -> Post...

    This works fine and also my PHP-Script does what it should.

    The problem is, I want to call another action, after the AJAX-Post is finished.

    The manual says that this can be done by using AJAX -> On complete.

    I use the same tag in the AJAX -> Post and the AJAX -> On complete but the On complete never fires...

    It doesn't matter what I write into the on complete event, it just never starts...

    Is there anything I'm missing?

    Best regards and thanks for help!

  • Hello everyone,

    at the moment I'm creating a little game with construct 3.

    I'm using a loader layout.

    When the loader-layout finished loading, the next layout (start-layout) is shown.

    In that layout I only call the local-storage to load all user-data.

    When everything is loaded ("On all gets complete") I move on to the real game-layout. On desktop everything is working fine, but in the debug-apk, sometimes it stops at the start-layout (when user-data are loading) and it never moves on to the game-layout.

    Since my game uses a lot of objects, I think that the app just break after loading the user-data when it normally should load the game-layout and all the objects...

    How can I solve this? There is no chance to reduce the objects in the game-layout. I also tried to preload the game-layout in the loading-layout, but this was even worse (didn't really work).

    Now I'm only preloading some of the objects with "load OBJECTNAME images in to memory". But now sometimes the game doesn't load and sometimes it works...

    Maybe I should create the objects as global-objects in the loading-layout (or some of them) instead of calling "load OBJECTNAME images in to memory"...

    Hopefully someone can help me out.

    Best regards!

    Edit:

    When moving from start-layout to game-layout, all objects are created. In this step the cpu-usage (desktop-debug-preview) goes to 100% and then when everything loaded (after 1 second) the cpu-usage is at like 4-5%. So there is a big problem by creating sprites / objects in construct 3 and I don't know how to solve this...

  • Hello everyone,

    I'm creating a little game which uses very big numbers.

    I found out that construct 3 is using 64bit to save numbers, so the biggest number would be something like 10^308.

    When numbers get above this value and I make some calculations with them, the game / browser will crash.

    Is it possible to use higher numbers then 10^308 and make calculations with them? (displaying them is not the problem)

    Best regards.

    Tagged:

  • Hi,

    you can do it with timestamps.

    There is the "browser-object" which can detect if your window is unfocused.

    If you are interested in a full idle game script made with construct 2, here you can buy it very cheap:

    codecanyon.net/item/clicker-upgrade-idle-game-html5-app/11666827

    There are all these functions included (unfocused window, offline mode...)

    Here the link to the game how it looks like:

    kongregate.com/games/CreativeGamez/island-clicker

    Best regards.

  • Hello,

    here is my new game i made with C2:

    kongregate.com/games/CreativeGamez/island-clicker

    If you also want to make a clicker game and need some help:

    Here you can buy the full script of my game for less money:

    codecanyon.net/item/clicker-upgrade-idle-game-html5-app/11666827

    Best regards.

  • kongregate.com/games/CreativeGamez/island-clicker

    Idle Clicker game

    10.000 - 100.000 plays

    If you need help by creating clicker / idle games, here you can buy the full script of my game:

    codecanyon.net/item/clicker-upgrade-idle-game-html5-app/11666827

  • [quote:fbeq6eck]

    Thank you, glad you liked it. Unfortunatelly I did that mistake and bought the graphics with non-exclusive rights. Next time I'll pay more for exclusive rights or invest more time into creating my own.

    Hi,

    nice game, graphics also nice and it doesn't matter if you dont have exclusive rights... For backgrounds and such stuff the non exclusive graphics are mostly much cheaper but also very nice

    best regards and good luck with you game

  • good game man

  • nice game

  • also cant play the game there is just a background... no play-button

  • Hi,

    is there any easy way to get the unix timestamp from the user's pc or from the Server of the app?

    Just like in php the "$xyz = time();"

    Best regards,

    Kevin