IcticStep's Forum Posts

  • You do not have permission to view this post

  • Hello: I'd like to randomly choose an image from a set of 10, then drag it onto another image on screen and check if there is a match. I'm wondering the most efficient way to do this...can I put all the images in one sprite and randomly generate them? Thanks for any suggestions.

    Ron

    Of course. You can set frame to random and then just compare frames when you need. Just do not forget to set animation speed to 0 and change frames manualy.

  • Arrays aren`t too complex. You need them in fact. It's the best solution for this problem. Another solutions will lead to very bad code practices.

  • You do not have permission to view this post

  • Thank you!

  • There is a website on the internet. When I open it in my browser, it shows some JSON as a text. How I can receive this text to my game, made with Construct 3 for further usage?

    I have tried doing this via AJAX(got error without any further info), Iframe(just cannot get content of it) and some JS-scripts from stackoverflow.

    What can I do?

    Tagged:

  • Okay, I have sent you an email. Sory for long waiting. If you still need this - I can try to help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It`s hard to say anything about that without seeing a project. I think it is very simple mistake, but there are to many possible ways of causing that issue, so if you give the link to your project I can try to investigate the problem in order to help you.

  • I think you should see a Photon Multiplayer addon and his tutorials.

  • > > Thanks a lot! this is the project:

    > > drive.google.com/file/d/163Kj3-GBoE6nGAAnBXF6MK35Im0YZhN4/view

    > >

    > > If you want me to export it to another format please tell me

    >

    > Okay, I have leaved comments, so now all should be cleared. Ask me more if not and have a nice day!

    >

    > https://drive.google.com/file/d/1RDeuoL4tcsmz1mIrkH6nd5_rdvKWcUnX/view?usp=sharing

    Oh my god, what a speed!!

    It´s exactly that i wanted.

    I will study your comments.

    Many thanks! ;-)

    You are welcome)) This forum is a nice place, where you can always get a help with any problem ;)

  • Thanks a lot! this is the project:

    https://drive.google.com/file/d/163Kj3-GBoE6nGAAnBXF6MK35Im0YZhN4/view?usp=sharing

    If you want me to export it to another format please tell me

    Okay, I have leaved comments, so now all should be cleared. Ask me more if not and have a nice day!

    https://drive.google.com/file/d/1RDeuoL4tcsmz1mIrkH6nd5_rdvKWcUnX/view?usp=sharing

  • Share the project, please. I can help you to do that. Ihav esome experience in making beautiful scrolling, because I am developing my own game for Android now and I have a mobile browser that.

    I can show you how to do that, but it`s hard to understand all thing while the project is hidden.

  • For the record I covered this in more detail in a new blog post: The surprising difficulty of resizing images on spritesheets

    Using any fixed size border/padding does not always solve the problem - as noted the only real solution is power-of-two size and positioning on spritesheets, which is what the downscaling quality "High" setting does in Construct.

    Thank you a lot for the explanation. It`s great to see that Contruct`s author is glad to explain how his engine works) I wasn`t even hoping that my post will persuade such big and detailed answear! Thanks a lot for your great job!

  • I have seen these lines too. This feels like a bug to me.

    There may be thousands of images in the project, cropping and adding transparent borders to them all is definitely not a solution.. Not only it's a tedious job, but this may break the game - mess up image points positions, collision polygons, require code changes etc.

    Totaly agree with you. I am very scared to crop just everything because fixes can take half life :(

  • Just an idea: add 4+ pixels of transparency around the 'Front-End' sprite, it looks like that texture is being bi/tri linear filtered into your circle sprite rendered image (if you are zoomed in or out, you might also be at a different mip level so you may need more than 1 pixel of source transparency buffer between the images.) Also if you want to do some testing/debugging before you try that, change the bottom of the Front-end sprite to all red pixels and see if that changes the color of the 'line' at the top of your circle sprite.

    Okay... The line changed to red:

    So, yeah... The solution is to cut every single object in the project... Not only one object should be cutted but every his neighboor on spritesheet, too. Sounds like a trip to hell, but I am starting to do that with hope that conditions which move objects wouldn`t be broken after this.

    Thanks for a good idea for the experiment. Why I haven`t knew that before?