Toby R's Forum Posts

  • Calfuso as I see you have a serious problem with the very basic thing. Even if we manage to understand what exactly do you need and give you the exact solution, it won't be a real help in your case.

    You need to go several steps back. Try to read/learn about what variables, strings, integers, comparisons are. Not only from Scirra forum but in general. Maybe try to read some tutorial of basics of programming. Pick any common language like PHP or C. Just to understand the basics. It would make many things clear for you.

  • This topic has already beed discussed several times and as far as I know nothing has changed yet. You will find some workaround here https://www.scirra.com/forum/viewtopic.php?f=147&t=153661

  • You do not have permission to view this post

  • Have you tried using the Cocoon.IO? Canvas+ performance is quite something.

    Do you have any Android mobile app on Google Play made with C2 and wrapped with Cocoon.IO?

  • Your most important layer of database protection is not C2 but PHP. I'm not really sure what DUTOIT meant by "Don't pass login details via post. ", the big majority of websites authenticate using POST. It is obvious that plain POST data with no protection is dangerous for your server, but that's why there are number of ways to protect yourself. You can encode data, params, actions etc. You can add the hashKey/ApiKey/token (whatever you call it), You can (and should) use database library whith SQL Injection protection built in... etc.

    There are really uncountable ways you can protect yourself from attacks, I suggest to google something regarding SQL Injection and XSS. This will help you understand how attacks work and you will surely find number of common ways to protect yourself.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • First of all you don't need parenthesis. You use them to group calculations like in math.

    Second thing. Every event is being checked every frame (so approx. 60 times a second). So if you want to trigger this random calculation only once then you have to add an extra check which will determine if this should be ran or not (suggesting a boolean-like variable or a trigger action like "On tap..."). But I have a feeling that the first thing you should read is How Events Work. Then you may want to read about the "hidden" useful functions called System expressions. This should make many things clear for you.

  • triggerChance = 30 (this is some variable)

    System-> Compare two values (floor(random(101)) <= triggerChance) -> (do whatever you need)

    In this example you have 30% to trigger actions under this condition. By manipulatin "triggerChance" you can affect the chance in %.

  • All you need here is the Browser object. Browser object has "close" action which will terminate Crosswalk app. Also you can program back button with this object. More you can find in the manual https://www.scirra.com/manual/110/browser

  • Glad you found it useful . I've extended it a little bit, and added example screen shot of how I use it in my projects and made a tutorial of it: https://www.scirra.com/tutorials/4832/how-to-smoothly-switch-between-layouts. I think others might find it useful as well since it is pretty common problem.

  • IMO it's not really a big issue (surely not a top prio critical one), in fact I don't find it as an issue at all. I guess it all depends on the project. Right now the layer's "initial visibility" property is literally initial - it's a setting for the first time the layer is being loaded. It is stil worth to set it, because C2 engine doesn't render invisible layers. In my project I find it usefull that it remembers the visibility state, but as I said it depends on the project needs. Anyway it can surely be confusing especially that it is not mentioned in the manual (at least I haven't found it in layers chapter nor layouts chapter.

  • I played your game some days ago already.

    Regarding the game itself: it is not a dynamic game imo cause there is no constant move. It is very simple yet oryginal and nice game. One thing I would definitely change is the jump control. It would be much more comfortable to tap left and right side of the screen at once in order to jump then to do the slide move.

    Regarding the performance. Even that it is such a simple game you can clearly notice the little fps drops in moments like jumping or bullet (arrow) explosion. Also sounds effects have some delay. You can clearly see that while tapping on the level selection screen. However this can be fixed by moving sound files to the music directory in C2.

    So to wrap up. Nice game, good job . I played several levels and had some fun. Furter levels were annoying for me cause of hard jump control - but that might be just my feeling. But the performance of such simple game should be perfect on device like SGS4, and it's unfortunately not.

    I really hope that they will release some boosted Crosswalk soon. When this happen C2 will be a tool that all mobile developers always dreamed of. For now I find C2 as an amazing tool for HTML5 apps which runs on computers and a bit less attractive when you need to build a mobile app.

  • can you post some google play link of game which is a dynamic game made in C2/Intel XDK and runs smoothly on devices like SGS4? By dynamic I mean even a running/jumping games.

    I checked a lot of games from this forum, but unfortunately haven't found any good example yet.

  • Crosswalk is simply not as fast as you would expect. This is really surprising that normal mobile Chrome browser (full of various features) is faster then Crosswalk which has basically the same engine but without all those extra features around.

    I really hope they will release the fast Crosswalk version very soon. Before that happen, I suggest to read all performance optimisation tutorials and probably do some refactoring of your game in order to make it works smooth.

  • Revilo you are asking exactly the same things in third topic in a row, when you already got answers in both previous:

    https://www.scirra.com/forum/viewtopic.php?f=147&t=153608

    https://www.scirra.com/forum/viewtopic.php?f=147&t=153653

    Check your old posts before you start new one. Also if you don't get satisfied answer in previous one, then keep on asking in the same post - it will bump it up so people will see you still need help.