Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

Fast loop...issues.


Recommended Posts

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

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

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...