The Dink Network

New Tutorial: Mouse Mode Tutorial

November 8th 2007, 06:58 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
rabidwolf9 has created a new tutorial for D-Mod developers, the handy Mouse Mode Tutorial. It covers everything you need to know about enabling mouse support in a D-Mod. Very cool.

November 8th 2007, 07:48 PM
dinkdead.gif
Very nice! Concise and clear, just what's needed.

A couple of suggestions:
(Step 1) I don't think set_keep_mouse(1); has to be before set_mode(2); as some other D-Mods that use the mouse don't bother with this and they work fine, but I haven't done any testing.

(Step 4) Maybe mention that the button needs to be brain 14 to use buttonon and buttonoff? And I had trouble using them but they do work outside of the title screen, I think Cypry used them in his pillbug game.
November 8th 2007, 09:41 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Oops, I didn't look into the brain, that explains why
I'll update it showing that the button needs to be brain 14.
Step one can stay as it is. That was written according to the DinkC Reference and I'd rather have that just to be safe.

Edit: Since the file was put up as a webpage, is it possible for Redink1 or one of the staff members to modify it?

All that needs done is to add in step 4: Main that the brain of the button needs to be set to 14, and to take off the asterisks and the note that goes with them.