|
Post by Nonsense in BASIC on May 28, 2012 10:31:15 GMT
I don't know if this is a bug or not but I've found that using parama or b in the Main Loop causes a crash in the map. Maybe you're no supposed to use them there in the first place.  I re-typed my current project because of the crash and found this to be the culprit. Using global variables instead fixed the problem.
|
|
|
Post by BiNMaN on May 28, 2012 13:47:49 GMT
I was under the impression that parama, paramb and direction were purely to be used a variables for the sprite types, so that each sprite could have unique conditions while they were on the screen
don't think I've ever tried to use them any where else other than in the Initialise Sprite to give a sprite a set of conditions as parama, paramb and direction are set to 0 when a prite is spawned
|
|
|
Post by Nonsense in BASIC on May 28, 2012 15:01:28 GMT
I'm sure you're right BiNMaN. It looks like they're not supposed to be used in the main loop. I'll stick to sprites only in future.
|
|
|
Post by Jonathan Cauldwell on May 28, 2012 19:59:03 GMT
Binman's right, PARAMA and PARAMB are parameters which are unique to sprites and are quite handy for programming seemingly complex sprite behaviour. In non-sprite events no sprite is defined so behaviour is unpredictable, although I wasn't aware that using them under those circumstances would cause a crash. I'll have to do something about that going forward.
|
|