dop2000's Forum Posts

  • What do you have in "Settings -> Preview with"? I get a white flash only when I set "Browser tab" there.

  • It will work. Import the images into the project (in Files folder). Then simply use the image file name as URL.

  • There is a short flash when Chrome is launched the first time, but after that there are no flashes. Preview windows open with black background.

    Maybe because I'm using dark themes in both Windows and C3.

  • TiledBackground object has "Load image from URL" action, you don't need scripting.

    This will however replace the image in all instances of this object.

  • Try a different browser - if it works there, try clearing your main browser cache/data.

    If it still doesn't work and you can reproduce the issue in a small test project, report it:

    github.com/Scirra/Construct-bugs/issues

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To be honest, I don't understand the question.

    You can pick each instance in a separate condition. Say, if you want to pick a ship, and then a gun belonging to that ship:

    Ship compare instance variable id=0
    Gun compare instance variable id=Ship.id
    

    Inside that event you will have both instances picked.

    "Pick by comparison" will work exactly the same in this situation.

    "Pick by comparison" condition is meant to be used in more complex cases. For example, when you need to pick all ships with high health and armor, you can do this:

    Pick Ship by comparison (Ship.HP+Ship.Armor)>100

  • community.canvaslms.com/t5/Troubleshooting/Using-function-keys-on-my-Chromebook/ta-p/446131

    And what do you mean when you say the debug mode doesn't show anything? Anything wrong or it doesn't show up at all?

  • Press F12 in preview and see if there are any error messages in the console log.

    If there are no errors, run the game in Debug Mode (Shift-F4) and check everything - for example, the position of your character, layer visibility etc.

  • You can add your own tag into text and replace it with the value before displaying:

    Variable t = [outline=white]You earned {score} points![/outline]
    
    Set t to replace(t, "{score}", str(playerScoreVar))
    Text set text to t
    

    Or wrap your text in bbcode tags:

    Set t to "You earned " & playerScoreVar & " points!"
    Set t to "[outline=white]" & t & "[/outline]"
    Text set text to t
    
  • Now, does that mean that the game has to load every frame of every sprite that exist in the layout? Would it be faster for the game if I split up frames into individual sprites that only exist in the the layout in which they are needed?

    Yes to both questions. If you have a sprite with 10 large frames, but only using 1 frame on each layout, then the remaining 9 frames will be wasting memory.

    You can experiment by running the project in Debug Mode and comparing memory usage by images. Of course, you should only start optimizing if there is an actual problem - if the images are using a lot of extra memory (hundreds of MB or more), or if you are making a game for web where loading time is important.

    Compressing image files (say, by using lossy format) will make the loading faster. Reducing their resolution will save memory.

  • It may be better to use Line Of Sight behavior to check if the path is clear. Either check LOS or cast a ray and see if it intersects any objects.

  • Do you have a lot of text? Break it into smaller pieces. There is a limited amount of memory allocated to a text instance and when the text is very long it will become blurry.

    If that's not your case, then please explain what you mean.

  • Perhaps the easiest solution for you would be putting a bunch of placeholder sprites, manually in the editor. And then you can spawn random objects on them.

  • As I understand you need something like this:

    academo.org/demos/rotation-about-point

    You can update the position of every object by rotating their coordinates 0.01 degrees on every tick. However, this will probably mess with behaviors like 8direction or pathfinding.

    As an alternative you can use the method from my previous comment and make all objects invisible or place them off-screen. And then add visible copies of them, which will be positioned based on the original/parent object coordinates and the world rotation angle.

  • I'm curious - what program? Can you make a screenshot of the program window?