The Dink Network

Mousing Dink

March 31st 2010, 02:51 PM
knightgl.gif
castman
Peasant He/Him Brazil
Some day I'll finish my mod... Some day... 
I've tried to mouse Dink again but it doesn't woks well...

Dink becomes a mouse pointer and all but only keyboard arrows moves him, mouse doesn't...

I've copied exactly from the 'start' script (except for that base walk and idle things):

sp_base_walk(1, 0);
sp_base_idle(1, 0);
sp_seq(1, 0);
sp_brain(1, 13);
sp_pseq(1,10);
sp_pframe(1,8);
sp_que(1,20000);
sp_noclip(1, 1);
sp_nodraw(1, 0);


March 31st 2010, 04:27 PM
dinkdead.gif
set_keep_mouse(1);

set_keep_mouse will allow the user to go back into mouse-mode after the title screen if keep_mouse is 1. Note that this command must be set before the player uses the set_mode(2); command when starting the game for the first time.

To use the mouse later in the game, set Dink's brain to 13.