Navigation

    CreatiCode Scratch Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Important - code being run as if there multiple copies of the sprites

    Feedback
    3
    9
    108
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SirBots
      SirBots last edited by

      @info-creaticode

      Hello. I am here to report a bug which is causing massive issues on my World of Conquest game.

      The center of this bug is in the sprite which controls all the audio and visual effects for rainy weather. Here is the code for context: Screenshot (1).png

      The code runs normally when the “start game” command is sent in any weather conditions "weather is used as the variable for the weather effects. It is randomly determined each game if the weather in the previous match was sunny.

      However, the minute that Rain or Cyclone weather occurs in 2 of the total matches in one session, it seems like the scrips are being run as if there is so much copies of it. I’ve done troubleshooting to see if the raindrop clones was doing this, seeing if the layout of the code was causing it, but to no probable results.

      Thus, I concluded this is an editor bug, and there isn’t any way to fix this directly using code in the editor. I’d like this to be fixed as it impedes development.

      Your local coder who is working around the clock to make sure great games are made

      NotJaldolfYT 1 Reply Last reply Reply Quote 0
      • info-creaticode
        CreatiCode last edited by

        @sirbots

        Can you please try to confirm the issue? You can add some “print to console” blocks to confirm if there are indeed many copies of the sprites that are running.

        If that’s confirmed, can you share the project link and a method to reproduce the issue? We will fix that ASAP.

        SirBots 2 Replies Last reply Reply Quote 1
        • SirBots
          SirBots @info-creaticode last edited by

          @info-creaticode I will. Upon update release, it will be avaulable for you to study and find the issue. During the game trials, I will run console blocks to further confirm the issue.

          Your local coder who is working around the clock to make sure great games are made

          1 Reply Last reply Reply Quote 0
          • SirBots
            SirBots @info-creaticode last edited by

            @info-creaticode After doing some trials with the console blocks, it is indeed a editor bug.

            I studed the rate at which the console imput “yes” (shows the frequency of a raindrop being cloned and the frequency at which the rain ambiance sound is repeated) at around the same ratio as the “wait # seconds” used in each of the forever loops.

            Upon getting another rainy event later on, the bug then occurred. When comparing the rate at which console inputs are logged before and during the bug, the console logging frequency during the bug, after doing some math, has increased by almost 8 times than before the bug occurrence. Therefore this confirms that this is a problem in the editor.

            To recreate this bug, just simply keep playing the game until you get 2 instances of rainy weather. Upon the 2nd instance, the bug will occur. It should take between 2-5 matches to get 2 rainy or stormy weather occurrences.

            Your local coder who is working around the clock to make sure great games are made

            1 Reply Last reply Reply Quote 0
            • SirBots
              SirBots last edited by

              Screenshot (2).png

              Picture for ref

              Your local coder who is working around the clock to make sure great games are made

              info-creaticode 1 Reply Last reply Reply Quote 0
              • info-creaticode
                CreatiCode @SirBots last edited by info-creaticode

                @sirbots

                Can you share the project URL?

                And to clarify, is this the bug: When a new clone is created, more than 1 clone is created?

                SirBots 1 Reply Last reply Reply Quote 0
                • SirBots
                  SirBots @info-creaticode last edited by

                  @info-creaticode It’s like the scripts themselves are being cloned. I confirmed that the clones themselves aren’t the problem when I was troubleshooting. It’s when the code is run when there was a previous rainy event.

                  I don’t really know the exact cause of what’s causing the code to do this, I only know how to make the code do this and rule out possible causes.

                  Your local coder who is working around the clock to make sure great games are made

                  SirBots 1 Reply Last reply Reply Quote 0
                  • SirBots
                    SirBots @SirBots last edited by

                    @sirbots Here is the link to the game:

                    play.creaticode.com/projects/679b952fe83001fc08dae8bb

                    Your local coder who is working around the clock to make sure great games are made

                    1 Reply Last reply Reply Quote 0
                    • NotJaldolfYT
                      NotJaldolfYT trusted helpers @SirBots last edited by

                      @sirbots I think this has been happening to me also, my code for my project when making 1.05-alpha-release was running multiple times. This could be a bug or could be an issue with my device.

                      hai!!!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post