Reply to Re: Screenlocking/Story
If you don't have an account, just leave the password field blank.
Here's the script I attached to an invisible box in the corner of the map:
The screenlock doesn't work.
EDIT: I'll attach this script to the pills. Maybe that'll work.
EDIT: Screenlocking pillbug script -
That doesn't work either.
EDIT: I was stupid again. I removed the obviously placed second "void main ( void ), and the invisible thingy. Now it screenlocks, but when all the pills die, it's still locked. \
EDIT: The invisi-boxes are gone now too. XD
void main(void) { // Make this sprite invisible sp_nodraw(¤t_sprite,1); // Screenlock the screen screenlock(1); say("dang pillbugs!" ,1); // Loop forever, until there aren't any sprites with brains 9 and 10 on the screen loop: wait(250); if (get_sprite_with_this_brain(9, 0) == 0) { if (get_sprite_with_this_brain(10, 0) == 0) { // Remove the screenlock screenlock(0); playsound(43, 22050,0,0,0);
The screenlock doesn't work.
EDIT: I'll attach this script to the pills. Maybe that'll work.
EDIT: Screenlocking pillbug script -
//screenlocking pill //pillbug brain void main( void ) { sp_brain(¤t_sprite, 9); sp_speed(¤t_sprite, 1); sp_exp(¤t_sprite, 5); sp_base_walk(¤t_sprite, 130); sp_base_death(¤t_sprite, 140); sp_touch_damage(¤t_sprite, 1); sp_hitpoints(¤t_sprite, 8); preload_seq(131); preload_seq(133); preload_seq(141); preload_seq(143); void main(void) { // Make this sprite invisible sp_nodraw(¤t_sprite,1); // Screenlock the screen screenlock(1); // Loop forever, until there aren't any sprites with brains 9 and 10 on the screen loop: wait(250); if (get_sprite_with_this_brain(9, 0) == 0) { if (get_sprite_with_this_brain(10, 0) == 0) { // Remove the screenlock screenlock(0); playsound(43, 22050,0,0,0); if (random(2,1) == 1) { sp_target(¤t_sprite, 1); } } void hit( void ) { sp_target(¤t_sprite, &enemy_sprite); playsound(30, 21050, 4000, ¤t_sprite, 0); //lock on to the guy who just hit us //playsound } void die( void ) { int &hold = sp_editor_num(¤t_sprite); if (&hold != 0) editor_type(&hold, 1); &save_x = sp_x(¤t_sprite, -1); &save_y = sp_y(¤t_sprite, -1); external("emake","small"); }
That doesn't work either.
EDIT: I was stupid again. I removed the obviously placed second "void main ( void ), and the invisible thingy. Now it screenlocks, but when all the pills die, it's still locked. \
EDIT: The invisi-boxes are gone now too. XD