Guizmus's Forum Posts

  • You don't have to set mime type in C2. Audio is handled by the audio plugin and will choose, depending on the platform the project is running on, what format to play and how to play it.

    Just add your music to your project, and play it using the Audio plugin.

    Look through the manual entry for further explanations on how to play audio, apply effects, loop, ... It's pretty easy to use, and you can thank a lot Ashley on this one, as the Audio in HTML5 isn't as simple as it looks like if you want it to run fine everywhere.

  • Don't worry, functions in C2 are as operational as they are in pure JS.

    You can use the function parameter by calling the expression "Function.param(X)", X being the index of the parameter.

    I use functions in lots of cases. For example :

    <img src="https://www.scirra.com/images/articles/TLE7_2.jpg" border="0">

    (this is explained in a tutorial linked in my signature).

    Also, here is a capx I made some times ago to explain the basis of functions.

    Finaly, you can take a look at the function reference in the manual. The end of the article will explain all conditions/actions/expressions of the function plugin.

  • Try Construct 3

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

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

    This isn't a bug report yet, since I can't reproduce this 100% of the time. I'm making this post to see if anyone else has encounter this, and may add some usable information.

    Since R138 (and in R138.2 too), I'm having random crashes on C2, in various cases.

    First I had was when switching from an event sheet to a layout in editor. With no reason that I could understand fully, all the sprites started to "forget" their current image, and the program crashed with no bug report to help.

    I also had 3 times a crash when just "waiting" in an event sheet, doing nothing but looking through the code (even one time without touching my mouse or keyboard).

    The same project 5 min later didn't crash at all, and I could sometime work around 2 hours without problems.

    One of the 3 times was just after a restart of my computer,

    I never had any problem with C2 since I started using it, and as far as I can tell I didn't change anything with my computer since.

    I'm using a windows 7 SP1 up to date, on a x86 processor (intel core i7).

    I'm sorry this "report" isn't accurate, and I would love if anyone having similar problem could report it too. If you have any usable information, I'm sure this could help, as this initial post is worthless as it is.

  • I don't know how you place your grid right now, surely with a pin to the player.

    Instead, place it by setting every tick the grid position to (round(player.X/tilesize)*tilesize) + offsetX

    (round(player.Y/tilesize)*tilesize) + offsetY

    where offsetX and Y are constants initialized depending on your grid origin. (ho, and remove the pin ^^)

    This way, the grid will only be positioned on tile places, making it a lot nicer. It won't follow the player smoothly though, but you can't have both ^^

  • Mobile devices have limited resources, and compared to nowadays computers are like dinosaurs. There are a lot of optimization to do when you plan to release a game on mobile.

    Here is a great tutorial for those optimization, that might help you.

    Hope this comes in handy !

  • Like all rexrainbow's plugins, the best way to DL them and keep them up to date is to use his repository. You can find it in his signature, but here it is : PluginRepo

    I didn't find any forum topic about this plugin right now (strange, I think I remember reading a documentation on it...)

  • What about CSV, with an ID in the first column (unique by monster), N columns for all the datas about your monster (at least the animation), and 1 column for the ID of the evolution of the monster (or more than 1, like level, or special conditions, even multiple evolutions for a single monster if needed) ?

  • I can't produce a capx right now (computer down), but if I remember well, the JSON for an array in C2 is 3 dimensional in the datas, as the array is. So you would have to load it with :

    {"c2array":true,"size":[3,1,1],"data":[[["test1"]],[["test2"]],[["test3"]]]}

    and not :

    {"c2array":true,"size":[3,1,1],"data":["test1","test2","test3"]}

    witch is consistant with your current result (taking the [0][0] of a string is the first letter)

  • Also, you activate the group, triggering this loop at every tick, so you'll have an infinity of data output. Call a function instead, or deactivate the group after.

  • As of always, please write in this forum in English, or at least provide a translation (google trad even).

    Thanks !

  • If you use the Pathfinding, the A* algorithm behind it will only give you the shortest path. You'll need to do the paths yourself if you want it in another way.

    As I did the same as you, here is how I managed multipath : waitpoints. Just put some waitpoints on the paths, and associate a "waitpoint route" for every spawner or every mob (depending on what you want). Then, instead of looking for a path to the exit, look for a path to next waiting point, and again until you are at the objective.

  • I have signed up...but cannot share the link to file from my computer via right-click like in dropbox. I have to share it from website:(

    I subscribed too, but link sharing works fine for me, even better than in dropbox. For example, you can see history of files just by right click. It's under "copy actions" in the contextual menu for me.

  • Hey saied267

    I didn't have any problem opening this capx. Are you sure you have the last version of C2 (r138.2) ?

    Here is the beta download page if you don't.

  • Depends how you coded it, size of images, ... without capx, it's hard to say.

    Be sure to check this tutorial on the subject : performance tips for mobile games

  • I don't know if this is still an improvement to come, but thanks a lot for explaining that you could cut/past elsewhere and the events would come back. Still, terrifying. I agree twice if it's even possible.