dop2000's Forum Posts

  • I still don't fully understand your task, but in any case the code you have is very wrong.

    This whole thing can be done much easier. Decide which color molecule to spawn (a number from 1 to 4). Then, since each color is spawned from a separate image point, you can simply use the color number to spawn a new molecule:

    dropbox.com/scl/fi/0jqup6qr3zuoyfdomsdiz/Moleks.c3p

  • The "overlapping at offset" condition is also used incorrectly.

    You probably need "System Pick overlapping point" instead.

  • The code is quite a mess to be honest. You need to understand how picking works in Construct!

    Once you create/spawn a new Molek instance, it gets automatically picked in all the further actions and sub-events. I outlined all these lines with red - they apply to the created instance only:

    So the sub-event #27 will compare the color value of the newly created instance only, not any of the other existing instances! Which means "Or pick Molek instance 2" condition is moot, because the picked scope only contains 1 instance.

    If you want to compare other instances in a sub-event, you need to use "Pick all" condition first. But then you will need to pick the newly created instance again to change its color variable.

    Can you explain what these particular events 26-27 are supposed to do? And then I may be able to tell you how to fix them.

  • i want to include it.

    I dont want it to be inclusive.

    I don't understand.

  • It's a known problem, and not only on iOS. All devices render texts differently.

    Try another vertical alignment setting. Make sure the text is using the font that is included in the project. If it doesn't help, replace it with a sprite font.

  • You definitely need to attach some screenshots of your code and of the result you are trying to achieve.

  • Does this mean that it only supports one resolution, which is the computer screen resolution, and there's no way to actively lower the game's resolution?

    This is my understanding, yes. Construct game will run at system resolution (or window size if not full-screen), and will scale all graphics accordingly.

    Here is a demo:

    dropbox.com/scl/fi/790syf7rradlkp4q71a0q/Resolution_Change_Fail.c3p

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm having trouble actually creating the conditions in the same block as the touch commands. It keeps creating a new block. I tried putting it in the begining of the script and also after each touch command block but it's still not working.

    No, don't add new events! You need to add this condition to your existing touch events. Select "On tap gesture on Budo_N" and press C to add another condition. Or right-click and select it from the menu.

    The result should look like this, and you will only be able to tap Budo_N once every 5 seconds:

  • Another option - you can add a condition checking if the animation is still playing.

    For example:

    Touch On Tap 
    Player animation "reloading" NOT playing : Player spawn a bullet
    
  • I want to add two resolution options, 3840x2160 and 1920x1080, for my game. Should I design the game using a 3840x2160 viewport?

    I’ve never seen Construct games offer resolution selection. From what I understand, changing canvas size will not change the physical resolution of the display. So if you make the canvas 50% smaller and zoom everything to 50%, it will basically have no effect.

    So just choose a resolution which provides the best balance between quality and performance.

  • You need to set the variable to (time+5), which means the current time +5 seconds.

    And then you add this condition to all "On touch" and "On tap" events:

    IgnoreTouch<time

    It will prevent them from triggering until those 5 seconds have passed.

  • It's not about displaying more content, it's about the quality of graphics.

    You can choose to use higher resolution images, 4K backgrounds etc. - in this case set viewport size to 3840x2160.

    If you want faster loading times, smaller download size, lower memory usage - prepare all graphics for 1080p screens and set viewport size to 1920x1080.

  • I don't think it's possible. But you can make a reminder for yourself. Add a couple of events:

    If in preview :
     Read version number from Local Storage
     If it's the same as the project version number -> display a warning
     Else -> Save new version number in LS
    
  • Just ignore touch events. You can do this with a variable:

    Set variable IgnoreTouch to (time+5)

    And add this condition to all "On touch" events:

    IgnoreTouch<time