pourcelaine Posted July 30, 2006 Report Share Posted July 30, 2006 Herro agaain~! I don't very well understand fastloops. I tried implimenting them for my end sequence in a level (basically to create lots of explosions on the like flicky container, among other things), and I also implimented a sort of bubble sort system that Mark the Echidna gave me that also includes fastloops. After installing these things my games been crashing. At first it crashed all the time, so I changed the order of the bubble sort events and it seems to be fine, but when I break the flicky box and trigger the explosion loops, my game crashes sometimes. Is it really fast loops, and why would crashing happen? Whats the right things to use fast loops for :e Thank you so very much! EDIT: Here's a screenshot, denno if it'll help. http://exhausted.gunsha.com/example.jpg Link to comment Share on other sites More sharing options...
ila Posted July 30, 2006 Report Share Posted July 30, 2006 Well if its something Mark gave you then thats why- just kidding. Uhm actually. I have no clue why your game is crashing. Can you post a screenshot of the code or something? Or just wait for someone who has not lost his fangaming talent to help you. Link to comment Share on other sites More sharing options...
ssbfalcon Posted July 30, 2006 Report Share Posted July 30, 2006 Take a screenshot of the event list editor of just that area so we can see exactly what's happening... Make sure the loops aren't looping infinitly... like one calling the other, etc... Link to comment Share on other sites More sharing options...
Andrew Posted July 30, 2006 Report Share Posted July 30, 2006 How I use fastloops is: o Condition happens = Start Loop #1 for xx loops o Loop #1 + Condition happens = Events For instance, a simple keep-out-of-ground thing: o Mask is overlapping background = Start Loop #1 for 40 loops o Loop #1 + Mask is overlapping background = Set Mask Y to Mask("Y") - 1 Edit: Crashes tend to happen for me if I endlessly start the loop. (as in, i start another loop on the same loop while that loop is looping) Link to comment Share on other sites More sharing options...
pourcelaine Posted July 31, 2006 Author Report Share Posted July 31, 2006 Well, I have my loop set for continuous loops. So like, cause: my character hits the big flower thing effect: start loop 'create end explosions' 1 time cause: on loop 'create end explosions' alterable value of 'flower box' < 20 effect: create 'explosion' cause: animation frame of 'explosion' = 3 effect: start loop 'create end explosions' 1 time add 1 to alterable value of 'flower box' So it would go infinitely if I didn't have the < 20 restriction. But now that I look at it, I don't even really need to use loops for this, do I? Link to comment Share on other sites More sharing options...
LarkSS Posted July 31, 2006 Report Share Posted July 31, 2006 Actually no. Using the loop would just make the explosions appear instantly instead of 1 at a time. Also, you could have just set the loop to 20 instead of using a value. Another thing, adding the < 20 does not prevent it from being indefinate. You need to include it in the last step as well. Link to comment Share on other sites More sharing options...
Draco Icebane Posted July 31, 2006 Report Share Posted July 31, 2006 Crashing may happen for any of the following reasons: You run a loop that is already running You run a loop for negative loops I've crashed from both of these before. :> Link to comment Share on other sites More sharing options...
pourcelaine Posted August 1, 2006 Author Report Share Posted August 1, 2006 Maybe that would do it..oh but now my games still crashing even after taking out the loops. Dangit. Link to comment Share on other sites More sharing options...
Recommended Posts