Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Bug Reports
  3. Crash array spawn timer

Crash array spawn timer

Scheduled Pinned Locked Moved Bug Reports
6 Posts 3 Posters 1.3k Views 2 Watching
  • 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.
  • S Offline
    S Offline
    Stephenn
    wrote on last edited by
    #1

    When I use this with a timer and random numbers the app crashes when I start the game.0_1494272193626_IMG_1339.PNG

    1 Reply Last reply
    0
    • Aidan_FireA Offline
      Aidan_FireA Offline
      Aidan_Fire
      wrote on last edited by
      #2

      Is that the crate that is spawning the crate? If so, it's crashing because right at the start the crate must be spawning itself, then the new crates are spawning themselves, and as you can see you get an insane amount of crates very quickly, then hyperPad will crash because too many crates.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stephenn
        wrote on last edited by
        #3

        No, it's not spawning itself. I got a random x value and y value, checked if they were on the grid and spawned a crate on them.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Stephenn
          wrote on last edited by
          #4

          0_1494323559683_IMG_1340.PNG 0_1494323621510_IMG_1343.PNG 0_1494323589209_IMG_1341.PNG

          Jack de WildeJ 1 Reply Last reply
          0
          • S Stephenn

            0_1494323559683_IMG_1340.PNG 0_1494323621510_IMG_1343.PNG 0_1494323589209_IMG_1341.PNG

            Jack de WildeJ Offline
            Jack de WildeJ Offline
            Jack de Wilde
            wrote on last edited by Jack8680
            #5

            @Stephenn I'm guessing it's because you're comparing the add values and multiply values (numbers) with arrays.

            The if behaviour doesn't loop through each of the array values like that, what you'd need to do is use a loop that activates the same number of times as the number of values you have in your array, then use the get array value behaviour with the index set to the index output from the loop. That way, it will check whether the positions are equal to each value in the array.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Stephenn
              wrote on last edited by
              #6

              Oh, ok thank you.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Search