Reply to Re: sp_script
If you don't have an account, just leave the password field blank.
and when you use sp_script, the name of the script getting attached needs to be in " ".
sp_script(24,"goblinkill");
And who is sprite 24?. If you want the newly created sprite to have this script, then:
sp_script(&gobbo,"goblinkill");
And you have created it in view of the player. Thats o.k. if you want it that way, but you can use create_sprite beyond the screen:
(you don't need sp_pseq, put 765 in the create_)
int &gobbo = create_sprite(700,140,0,765,5);
then after giving him a base walk(in this script or in "goblinkill")
sp_base_walk(&gobbo,760);
freeze(&gobbo);
move_stop(&gobbo,4,550,1);
In fact, within this script, you can control the newly create sprite completly! because you have the variable &gobbo.
sp_brain(&gobbo,9);
sp_target(&gobbo,1);
ect.......
sp_script(24,"goblinkill");
And who is sprite 24?. If you want the newly created sprite to have this script, then:
sp_script(&gobbo,"goblinkill");
And you have created it in view of the player. Thats o.k. if you want it that way, but you can use create_sprite beyond the screen:
(you don't need sp_pseq, put 765 in the create_)
int &gobbo = create_sprite(700,140,0,765,5);
then after giving him a base walk(in this script or in "goblinkill")
sp_base_walk(&gobbo,760);
freeze(&gobbo);
move_stop(&gobbo,4,550,1);
In fact, within this script, you can control the newly create sprite completly! because you have the variable &gobbo.
sp_brain(&gobbo,9);
sp_target(&gobbo,1);
ect.......