The Dink Network

Randomized title screen?

March 11th 2015, 05:43 AM
pq_cthunik.gif
GOKUSSJ6
Peasant He/Him Poland
Everyone should get a pizza for free in each week. 
I have been wondering, is it possible to randomize the title screen? Basically, each time you start a mod, a different title screen shows up. So far I have tried to do it by myself using the random command, but no luck whatsoever, since a white screen shows up.
March 11th 2015, 07:17 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
I don't see why not. It should. Just create multiple title screens and use a random command in start.c. I don't see why it would not be working for you. Are you sure you added the new title images in Dink.ini? You could also try the same random command somewhere else in the game and see if it works there, to confirm there's nothing wrong with that part of the script.
March 11th 2015, 09:15 AM
pq_knight.gif
ExDeathEvn
Peasant He/Him New Zealand rumble
"Skinny Legend" 
It's doable, made use of randomly selected main menu backgrounds.
Unless you mean the "Loading" image.

  int &r = random(4, 1);
  &dinklogo = create_sprite(426,344, 0, 453, &r);
  sp_que(&dinklogo, -800);
  sp_noclip(&dinklogo, 1);


That's what I have for the titlescreen image in start.c right before the button creation lines, but after the mouse pointer lines.