Crash array spawn timer
-
When I use this with a timer and random numbers the app crashes when I start the game.
-
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.
-
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.
-
-
@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.
-
Oh, ok thank you.
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