The Dink Network

Two player Dink

November 25th 2005, 09:12 AM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
Could it be possible to make Dink like you could play it with more than one person? Not that playing Dink with more people together would be that fun but I'm just interested in how it works.
November 25th 2005, 09:14 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
As in 2 people playing on the same computer? As in a co-operative mode?

Or an online game?
November 25th 2005, 09:17 AM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
All of them or just one doesn't realy matter.
November 25th 2005, 09:22 AM
wizardb.gif
Cifra
Peasant He/Him
 
it's probably possible...you just copy the script with dink controls and apply it to another sprite?
November 25th 2005, 10:26 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
There is no script for Dink's controls. All of Dink's movement is controlled by the fact that he's brain 1. So, sure, you could give another sprite brain 1, but then they'd follow the same exact movements as Dink, as there isn't any way to change which keys control Dink.
November 25th 2005, 10:38 AM
wizardb.gif
Cifra
Peasant He/Him
 
but is there a possibility to copy the dink sprite and rename it and then write your own script with asdw commands keys for the second player
November 25th 2005, 12:31 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
No. Dink's movement is controlled by brain 1. Brain 1 is completely defined in dink.exe. There are no scripts involved. There is no way to re-define movement keys from scripts, nor to modify brain behavior.

Edit: You could try to use the key-##.c scripts for controlling movement for a second player, but you'd find that it doesn't work very well at all...
November 25th 2005, 12:45 PM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
Tell me more
November 26th 2005, 05:30 AM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
Yeah tell me more I want to know if it's possible.
November 26th 2005, 05:35 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Hmmm... Just wondering... Would it be possible to have one brain 1 and one brain 13 running at the same time?

EDIT: Nope, that won't work...
November 26th 2005, 08:17 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
As I said, it doesn't work very well at all. The key-##.c scripts work well for one-press actions, like displaying a map. They don't work (at all) for continuous-press actions, like movement keys. You could try something like this:

//d2-left.c
void main(void)
{
sp_dir(&dink2, 4);
sp_mx(&dink2, -10);
wait(500);
sp_mx(&dink2, 0);
kill_this_task();
}

But you'd find that diagonals are pretty much impossible, and it would result in some of the jerkiest ovement imagineable.