The Daily Click ::. Forums ::. Klik Coding Help ::. Game crashes at one event
 

Post Reply  Post Oekaki 
 

Posted By Message

Joshua M.



Registered
  01/06/2004
Points
  1999
9th August, 2005 at 08:09:54 -

I'm making a game, and it uses particles and such (not extension particles, actives, I want more control, you know?).

The game crashes because of one event:

on loop 'particle' | create 'particle' at -7,-7 (I set the real positions later)

if I remove this event, it doesn't crash anymore (but there are no particles then, of course).
does anybody know what causes this?

 

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
9th August, 2005 at 08:19:05 -

MMF, right?

How many times have you told it to loop? It may be just filling up the memory with actives until it crashes?

 
191 / 9999 * 7 + 191 * 7

Joshua M.



Registered
  01/06/2004
Points
  1999
9th August, 2005 at 08:34:24 -

Yup, MMF.

It doesn't even loop at the start. The loop is triggered when the bullet hits a wall.
When it hits the wall, the loop runs a 100 times.
I was thinking the same thing, but then I wonder, to make that happen, the loop has to be triggered at all times, but the loop is only triggered once when it hits something.
But as I said, as far as I know, the bullet doesn't collide with anything yet.
I destroyed all the bullets at the start.

 
   

Post Reply



 



Advertisement

Worth A Click