Reply to Re: Screenlocking/Story
If you don't have an account, just leave the password field blank.
This is what I have.
Also, go to IRC so we can make this easier.
EDIT: Aha! got it. Now for the most important part of all - I need to do a story thingy. After both screens of pillies are dead, Dink needs to gain 50 attack and 20 def. Then two sprites need to say something different. How do I do this?
//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); // 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) { 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 ) { // Remove the screenlock screenlock(0); playsound(43, 22050,0,0,0); 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"); }
Also, go to IRC so we can make this easier.
EDIT: Aha! got it. Now for the most important part of all - I need to do a story thingy. After both screens of pillies are dead, Dink needs to gain 50 attack and 20 def. Then two sprites need to say something different. How do I do this?