CGamez's Recent Forum Activity

  • I also found this link now (because of your link):

    construct.net/en/tutorials/offline-games-construct-8

    But there I have one question:

    It says that I get offline.js and sw.js

    I can find the sw.js but only an offline.json or in /scripts/offlineClient.js

    offline.js = offline.json?

    To not allow offline playing I can delete the sw.js + offline.js (or offline.json?)

    Should this also fix the problem with the updates?

    Best regards.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank your for the links!

  • Hey,

    thanks for the response, but that doesn't work for me. I've tried it and that makes a game like this unplayable since you need to change scenes multiple times per minute... And there you don't want any loadings between them.

  • Hello,

    I made a simple 2D game with a lot of images (mostly tiled-backgrounds, but also many sprites). Since I didn't want multiple layouts (loading between scenes), I just put everything in 1 layout. This works perfect, the only problem is the loading of the game. I have a loading-layout, start-layout and game-layout. In the loading-layout I preload some of the images. When it's finished I move on to the start-layout where I load some game-data. After that I move on to the game-layout. This step needs a bit of time, since everything needs to be loaded before the layout is displayed.

    How can I get there more performance / reduce loading? All images have a total size of 30mb. I already made them as small as possible...

    Thanks for the help!

    Best regards.

  • Hello,

    I've made a little clicker-game with construct 3.

    When exporting, I choose the following:

    Kongregate -> deduplicate / recompress images, minify script.

    Everything works fine but everytime I publish a new version of the game, some of the images are completly wrong... I need to reload twice with "F5", then everything works fine again.

    What I mean with the images shown wrong: For example there is a list of 10 avatars (avatar1, avatar2 ...). After update, there is the image of avatar5 instead of avatar1 and so on... All 10 avatars using the same sprite (avatar1 = frame1, avatar2 = frame2 ...)

    Btw: what exactly is the difference between exporting for kongregate or html5 web? I guess it's the same?

    Hopefully anyone can help me out with this annoying bug...

    Thanks!

    Best regards.

  • 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!

  • 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...

CGamez's avatar

CGamez

Member since 14 Oct, 2013

None one is following CGamez yet!

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies