dop2000's Forum Posts

  • This is not possible. If you want to keep track of which sounds are playing, you need to save their tags in an array.

  • "ditching the template" may not be a very good advice, there are plenty of game templates on Scirra store that are old, but still great. Just last week I helped to replace WebStorage in an old project, and I actually enjoyed playing that game.

    Rigel11 I advise you first familiarize yourself with the Local Storage plugin. Check the official templates and tutorials.

    The main difference between WebStorage and Local Storage is that WebStorage is synchronous, meaning that you can access any item from the storage immediately: Set level to WebStorage.LocalValue("currentLevel")

    Local Storage is asynchronous - you request an item, and then you have to wait for it to be retrieved. You need to use "Wait for previous action to complete", or "On item exists/get" events.

  • I've had the same issue with the Desktop build for at least a month.. Don't know how to fix it.

  • Why do you have a condition "Is overlapping Spike at offset"?

    Two conditions "Has wall on the Left" and "Has wall on the Right" should be enough for this AI to work. Also, make sure that the origin image point is in the middle (horizontally) of the sprite.

  • This doesn't make sense. Are you sure you don't have other events (maybe in other included event sheets) that can create this doctor sprite?

    Add a debug message using "Browser Log" into event 2, check browser console - will you see this message?

    If nothing helps, you can email me your project and I'll fix it for you.

  • Your "Shuffle" button doesn't work because you used the wrong object name in the event - Button instead of Button2

  • It's difficult to tell what can be wrong.

    When debugging complex issues like yours I use Browser Log a lot. I would add debug output to all critical events, printing the array values, instance UIDs, variables etc.

    Then run the game in debug mode, pause before and after the function call, open the browser log, inspect the contents of the array, check positions of the black squares etc.

    Also, I don't see a "Pick by UID".

    It's not under System object. It's Virus -> Pick by unique ID

  • You can use either "Pick by evaluate" or "Pick by unique ID", it doesn't matter.

    What exactly doesn't work? I don't see any mistakes on your screenshot.

    If you are not sure if the function gets called, add debug output to it - for example Browser Log "Green distortion for "&Virus.UID

    Run the game, press F12 to open Console and check the browser logs.

  • My go-to website for free sounds is freesound.org, but there's a lot of garbage there. Here are some other resources:

    romanluks.eu/blog/list-of-50-websites-with-assets-for-game-developers

    skyesaudio.com/blog/2019/4/1/the-ultimate-free-sound-effects-list-free-to-download

    reddit.com/r/gamedev/comments/fmfekg/supporting_the_gamedev_community_in_this

    If you are willing to pay, just google what you are looking for, there are lots of websites like audiojungle.net etc. with high quality sounds.

  • Right-click on the function and select "Add parameter" (or press P). Add a parameter VirusUID. This will allow you to pass UID of the virus instance to the function. Inside the function, add an event "Virus pick by Unique ID =VirusUID" and nest all other events under it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Congrats on finishing the project.

    Have you fixed that messy code you used to checks if the answer is correct?

  • Not all tutorials are good and you've picked a bad one..

    I made this quick demo, take a look:

    dropbox.com/s/lgtrbsv5y0l5jv3/PhysicsChain.capx

  • If you need the sprite to move precisely to another tile, use MoveTo or TileMovement behaviors.

  • What about the percentages? I told you, the problem may be because with certain isolation/cleaness values your formulas are adding only 0.02% to the infected, but with other values they might add 1.02-3.02%, this is a huge difference. Maybe the infection_rate value should be 2, not 0.02

    .

    With 45 isolation and 100K people: 100000*(0.02)/100 = 20 infected

    With 15 isolation and 100K people: 100000*(0.02+3)/100 = 3020 infected