New Tutorial: Mouse Mode Tutorial
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.
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.
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.
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.
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.