Toby R's Recent Forum Activity

  • I am not very sure if I understand your problem, but I'll try to clear something out.

    If your forest is made with one tree, then you can use one sprite for everything. You can create a default animation as let's say "idle", and second animation of the same sprite for burning. Now it would be obviously resource saving to make forest by creating multiple instance of the same tree instead of using many different objects.

    If you have many different kind of trees then you might consider creating a separate sprite to imitate the fire which you could spawn on the particular trees. In such case you don't have to put butning animation in each tree sprite which will save some memory for sure.

    Anyway many objects/instances will cause performance drop - that's normal, so this is the first thing you should consider for optimisation. Next thing is the "weight" of the images you use for those sprites/animations. The rule is pretty simple, the more objects and sprite animation frames you have in your game the more memory and CPU resources it will take to load it up.

  • You cannot use directories/subdirectories to organize layers in C2, so putting everything in one layout is not a good idea - I totally agree with that and discourage to do this. That is simply not a good development practice. Another discouraging fact is that if you ever think of moving this game to mobile devices, too many objects in one layout would kill the mobile probably on the start.

    One of the most important thing in development is to correctly (also sematically if possible) organize your project elements. C2 gives us layout and layers for that and I recomment to use it.

    There is a delay while switching the layout - that is true - but this is totally normal, because all layout objects have to be loaded. It's not a C2 flaw - this is simply how it works everywhere. Check out other games, even the big ones like Diablo etc., everytime you swich between some distinct "screens" there is a loading screen and you have to wait. The faster PC/mobile you have the faster loading is, but it is there anyway.

    So don't try to workaround loading game elements by loading all of them at once because this is a bad practice and can kill weaker devices. Instead you should do the same thing as "the best devs" do for decades - use loading screens. Loading screen is not frustrating or anything like that. Players used to wait for game/screen to get loaded.

  • If you have a static number of answers (and as I can see in your example there are always 4) then you can simply add 6th parameter which will determine which answer is correct.

  • Just below "<?php" put some output information, for example "die('here I am');". Than check if C2 AJAX.LastData holds this value. You can use Browser -> Alert (AJAX.LastData). This will tell you if you are calling a good address. You can do the same with parameters like "die($_GET['login']))" etc. to check if values comes to PHP succesfully.

  • Glad I could help. Don't forget to show us this game when you're done!

  • You may also want to pick the instance by the "instanceName" which can be a generated text. I have explained that here scirra.com/forum/how-to-quot-construct-quot-an-object-name-using-variables_t152556

  • [....] I want to be able to do something to an object called "item&userSelection" (item75). For example, spawn object at "item&userSelection&.X" (item75.X) if the user enters 75. [...]

    Ok. So your problem is that you want to pick an object by name which can be "randomly" generated. Here we have bad and good news. The bad news is that you cannot pick an object by name in Construct2. The good news is there is a comfortable workaround. Kyatric already explained that a bit, but lets do it in details.

    First think of C2 object more like of a class in programming. It's not really an instance. The one you have on your layout is an instance already and has some unique ID. But you want to call it by name - no problem. All you have to do is to name it first.

    So go to your object settings and add a variable "instanceName" which should be a text type. Now you can name any instance (new on the fly, or name the one on layout manually). Once you have it named you are ready to pick it using "System -> Pick by comparsion" function. This function requires two parameters which will be compared. So as a first parameter you should type yourObjectName.instanceName and as a second one "item"&userSelection.

    And here you go, you just picked an instance you needed and you can do whatever you want to do with it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "Every tick" can easily be a killer, so you have to use it carefully. However another killer for mobiles is a Text object. Consider using SpriteFont instead of Text. There are several advantages, f.ex. SpriteFont is simply a Sprite, so it will be always rendered the same way on any device, Text can be drawn differently on various devices since it's being generated on the fly.

    ...but from the other side, it is true that Crosswalk performance is not that good as expected and it is indeed weird. People suggest to try to use various Crosswalk versions and check best performance for your game, but in my opinion it's not the best idea to do so. Crosswalk gets new versions not without the reason, each version has some new features/fixes, so IMO it's the best to use the newest one always.

  • Galaxy Trend Plus has also big problems with running Crosswalk apps. Whole screen is blinking - not playable.

    Is there anyone else with such problems? Or is it my app problem? Maybe we as a C2 community could make such a list together? Please share any known device/crosswalk problems.

  • There are thousands of Android devices. I don't think asking friends is a serious step to do. I believe there should be some official Crosswalk blacklist :/.

  • Hi,

    I have released a game (Intel XDK, CW14) to Google Play. I started to recieve a lot of good ratings but also a lot of bad ratings which were caused by technical issues people experienced. I've noticed that most of them have same mobile devices so I understood that some devices have problems with running my game even tho the game itself had no bugs.

    So I started to disable devices one by one in Google Play. In the beginning I had to ban whole Samsung Galaxy Tab 3 family, and then other devices.

    Is there a list of devices which are not compatibile/working properly with Android Crosswalk so I could disable them all in Google Play?

    I know there is a Chromium blacklist implemented, but as far as I know this only disables WebGL support on blacklisted devices (BTW: is this list published somewhere so I could take a look?).

    I am really trying to use C2 to make mobile games but it's not possible to push your app on TOP 10 when you recieve a lot of bad ratings. And the pretty sad fact is that it is not a gameplay fault but a technical issue I am not able to fix. So banning those "bad" devices should be a good workaround for now.

    Thanks!

  • Hi,

    Is there a way to implement push notifications using Intel XDK, Cordova, Construct 2? Can't really find anything useful.

Toby R's avatar

Toby R

Member since 23 Mar, 2015

Twitter
Toby R has 18 followers

Connect with Toby R

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x6
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies