posted 02-19- 02:57 PM CT (US)
I attached this script into a sprite, and it works to switch the control from normal dink into a mouse pointer. It also creates a Dink sprite (&dinktry) that is in the same position but not controlled directly with the mouse. It looks like the mouse pointer just appears, although the dink sometimes jumps a little when it switches. &dinktry is a global variable.void talk(void)
{
//saving dink's current location so I can put the new dink sprite there
int &xloc = sp_x(1,-1);
int &yloc = sp_y(1,-1);
//changing dink to the mouse
sp_seq(1, 0);
sp_brain(1, 13);
sp_que(1,20000);
sp_noclip(1, 1);
sp_base_walk(1, 0);
sp_base_attack(1, 0);
sp_nohit(1,1);
//these two commands are the ones that change the base sprite
sp_pseq(1,10);
sp_pframe(1,8);
//creating the dink sprite
&dinktry = create_sprite(&xloc,&yloc,1,12,1);
sp_base_walk(&dinktry, 70);
sp_base_attack(&dinktry, 100);
sp_speed(&dinktry, 2);
sp_timing(&dinktry, 33);
sp_base_idle(&dinktry, 522);
}