JoaoCesar's Forum Posts

  • Hi!

    Really long time since I made my last game using C2.

    My boss bought a template of a game made in C2, but he only got the exported files.

    The game runs OK but it is set to fit the whole available height of the browser, but I want it to remain at a 100% scale (640 x 480 px) because the assets are getting very blurry.

    How can I achieve this?

    Thank you!

  • I've found the answer myself. Very dumb.

    The problem is that I had deleted the .xml from within Construct 2 to add this file again (I was working with a single file project).

    But, as you may have already guessed, removing the .xml also removed the corresponding code related to this file.

    Because I was away from C2 for about a year I had forgotten about this consequence.

  • Hi!

    I've just opened an about one year old project to change some questions of a quiz game coming from a .xml file.

    But everything I do to the file and its location won't matter because every time I test the game in the browser it always loads the same old questions when the game begin!

    I re-imported the .xml file from within Construct 2 to the project's folder and nothing changes.

    Does someone know what is happening?

    Thanks!

  • Hi there!

    I've developed a quiz app that has five different assets sizes for multiple resolutions. My design is also flat and displays perfectly in all screens I've tested.

    Basically, I've created an AssetsManager function where I check if the device pixel ratio is not equal to 1 (mobile devices) and if it is equal to 1 (desktop or maybe tablets). This function can be called in the start of the layout or in a Browser > On resized event.

    Then, I set the current device pixel ratio to a global variable that I can use everywhere in a Load image from URL action to call the correct asset.

    The image will give you a better idea. Try to open it in a new tab to make sure you see the assets folders on the right.

    Hope it helps!

  • Use a For Each event instead.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there!

    I got a feedback from my client telling me that the videos of an app I developed for them are not working specifically on their tablets.

    Videos play normally on Windows (NW.js), mobile phones, but won't play in their tablet devices.

    They sent me the specs:

    Multilaser M7S

    CPU: Dual Core 2x 1.2 GHz

    RAM: 512 MB DDR III

    Android: 4.4

    Screen resolution: 800 x 480

    There are two videos in the app and both are encoded in the three formats required.

    Any idea of what's happening?

  • Like this! The idea is that you can set up a full HTML document through a string variable.

    I'm not an expert in HTML, so I grabbed Dreamweaver, created a simple table for the rank and copied its code.

    Inside of Construct 2, I divided the process in 3 parts:

    1 - The main part of the document (title, font, background color, and so on), before the loop.

    2 - Inside the loop, the rows that are appended for each iteration.

    3 - The end of the document's code definition, after the loop.

    Here is the .capx: goo.gl/To7N3f

    Please, don't mind the HTML formatting. :p

  • Hi, guys!

    Thanks a lot for the answers.

    linkman2004: Yeah, I'm putting it outside the quotes.

    korbaach: I tried Notepad++ but it also ignored the line breaks. Anyway, the final users are not computer geeks, so they probably won't try alternative text editors.

    The solution that worked for me was to export as HTML and now I'm able to do all kind of formatting. \o/

  • Hi there!

    I a have button that invokes a download from a string and save it as text file. Everything works fine except that the generated .txt file doesn't have line breaks.

    Instead of this:

    1- Player 1: 800 pts

    2- Player 2: 740 pts

    3- Player 3: 630 pts

    I get this:

    1- Player 1: 800 pts2- Player 2: 740 pts3- Player 3: 630 pts

    I've already tried using the newline expression inside my string and I've also tried "\n", "\r\n", and "\\n", but none of these have worked.

    Any idea?

  • Hi people!

    I'm building an app and when the user is creating an account he or she can choose a profile picture (.png, .jpeg etc.) from the device.

    The question is how can I save the image permanently, like we store names, passwords, highscores, and so on?

    Consider that the users won't have access to the Internet.

    Thanks!

  • Hey, briggybros! Thank you for answering!

    Well, the problem of using HSL is that I don't know how I could adjust the three values to match those of RGB.

  • Hi there!

    I'm trying to change a 9-patch object color to yellow (243, 202, 58) using SetColor effect, but the result is a less saturated color.

    What's the best way of accomplishing this?

    Thanks!

  • How do I distort the quad itself? It seems that I can distort the texture only and even so it get distorted by each triangle that forms the quad, if I understood it correctly.

  • Alright then, dieblume86!

    I'm gonna buy right now your template!

    Thank you!

  • Hey, RamPackWobble, amazing examples!

    I'll start learning Paster right away, R0J0! It will allow me to do everything I want! Thank you so much!