indy2005's Recent Forum Activity

  • I am just using mp3. Is there a way to change the format in Construct?

  • Works on my Android via chrome

  • Hi

    When developing on my laptop, my music plays. When launching construct directly on my mobile via Safari, when I test the game - the music doesn’t play - I do get my sound effects.

    Any ideas?

    S

  • Hi

    My game is nearly done, and I want to publish for the first time on Google Play Store.

    My question around the legal aspects. Do I need to set up a company or can I publish as an individual? Do I need a privacy policy if all I am doing is serving ads, and storing local high scores? If so, what’s the best way to generate a privacy policy and url (templates?).

    Do I need a website for the game, to provide support details and a place for the privacy URL, or can I just host the privacy url through one of the template companies I have see?.

    Thanks

    S

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks. In that case, what is every tick for?

  • Hi,

    I got it working by placing the overlap check into an every tick event, which should only run after the initial creation. So I dont destroy objects now, in the Every Tick event, I move the positions around.

    Not sure if I have to pin and unpin before setting the position. Can you set the position of a pinned object, as I am pinning it during object creation.

  • You need to move the condition from sub-event to event #60. "While" and the condition should be in the same event.

    I also suggest always adding this "emergency" exit condition to While loops, to prevent infinite loops: loopindex<1000

    Hi,

    I realise now that I was expecting one of the sub events conditions evaluating to False to cause the WHILE loop to exit, so thanks - it has to be in the same event. Still an issue though, the overlap test is not working. So I can get out of the WHILE loop but it is still leaving overlapped sprites. Can you not check for overlap in the same frame you spawned then?

  • Thanks will take a look. In your example, what is the exit condition for the loop? If you have multiple conditions in the While loop - does only one have to evaluate to False, or all conditions?

  • When I step through on the debugger, it just keeps iterating through first task, and never leaves. The game never loads in normal, non-debug mode. Stepping through, the iterations just keep going. You don’t need to know the right hand side. The screenshot shows the conditions are met, but iteration continues.

    I will post without debugger in the way tomorrow.

  • It never exits the loop....you can see in my screenshot the two variables are both 3. This should make the WHILE condition false. Infinite loop however...maybe it’s a bug when using an inverted condition (logical Not).

  • I am randomising positions until nothing overlaps. I am spawning an object, increasing a counter. I am then checking if any instances overlap, if they do...I destroy the object and decrease the counter. This repeats until the counter reaches the desired value (required instances). My understanding of While is, it leaves the loop when the condition inside the loop is False. My IF statement comparing the variables should evaluate to false when the number of instances matches the required number of instances. I can see from the debugger, they are equal (3), so the criteria (System get value) should evaluate to false and leave the While loop.

  • Although my inverted condition should be returning false, as the global variables now match, I never leave the damn WHILE loop?!

indy2005's avatar

indy2005

Member since 3 May, 2015

Twitter
indy2005 has 1 followers

Trophy Case

  • 9-Year Club
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

11/44
How to earn trophies