The Dink Network

Order of scripts

October 1st 2013, 01:47 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
In what order does the scripts on a screen run it's main procedures? Is it alphabetically, or based on the sprites location or in what order the sprite is added to the screen? Or something else?
October 1st 2013, 02:36 PM
spike.gif
Sprite number, if memory serves. (See by pressing I) The numbers roughly correspond to the order you add sprites to the screen, but it's probably not something you'd like to rely on.
October 1st 2013, 02:42 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
I think it's done in drawing order. That is, sprites with a low y-coördinate (indicating they're higher on the screen), or a low non-0 que-value come before sprites with a high y-coördinate (or high non-0 que-value).
October 1st 2013, 04:58 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
If you want to make sure one runs first, just add a wait(1) to the other ones
October 1st 2013, 05:10 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Thank you guys! Magicman is right, it's the drawing order... and Kyle's solution worked well
October 1st 2013, 11:58 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
I think it's done in drawing order.

That does not make any sense whatsoever... It must be true.
October 2nd 2013, 04:16 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
The story of dinkC.. ^^