The Dink Network

How do you disable Dink's diags?

April 19th 2010, 11:22 AM
duckdie.gif
So he will, have no diag walking sprites
April 19th 2010, 11:41 AM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Copy the folder for dinks walking (and the folders above it) into you dmods dir and replace the diagonal sprites with empty images.
April 19th 2010, 11:45 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Wouldn't that just make Dink's diagonal movements invisible?
April 19th 2010, 11:57 AM
bonca.gif
Christiaan
Bard They/Them Netherlands
Lazy bum 
Yes.

I'm sure it is possible though, just take a look at Frogger for example.
April 19th 2010, 12:06 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
I though he only wanted Dink to "have no diag walking sprites" but I might have misunderstood it :/
April 19th 2010, 12:39 PM
duckdie.gif
No, so if we press up+right for example he will not go diagnally, only up or right
April 19th 2010, 05:14 PM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
sp_dir( ... );

maybe? this is what they do in weapons scripts like the fireball (w00t that's my name!) to prevent dink from shooting diagonal, though it doesn't always work (fireballs shoot in the most awkward diagonal direction)

My DinkC is rusty, so I can't provide examples. But to implement such a script, well, that would be even more difficult. Maybe a script called button_xx? or key_xxx? That might work...
April 19th 2010, 06:34 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
@Fireball5
Fireballs are supposed to be able to be shot diagonal, the direction changes are for the animation to only take sequences that only end in 2,4,6, and 8. That doesn't work for walking.

If you're suggesting to imitate the arrow controls using other keys, that won't work either (it's been tried by a few people including myself and redink). It won't move the way you want it and with the delay between pressing keys, they will stack and scripts will be executing long after you press the button. The closest thing you can do to this effect is what Erwin did in MM for the second player which continually walks in a direction you press (WASD) and requires pressing a button to stop.

@Christiaan
I'm pretty sure Frogger uses wait_for_button() which also won't work because it won't detect button holds.

In conclusion, I don't believe what you're asking is possible with Dink's limitations.
April 19th 2010, 08:26 PM
fairy.gif
Someone
Peasant He/Him Australia
 
>The closest thing you can do to this effect is what Erwin did in MM for the second player which continually walks in a direction you press (WASD) and requires pressing a button to stop.

I made scripts that can do button holds, but there is a delay of maybe 200ms before the release is recognised.

>In conclusion, I don't believe what you're asking is possible with Dink's limitations.

Pretty much. Besides controlling Dink's movement directly in DinkC, the only way I can think is to do 4 hard invisible sprites that shadow Dink and block the diagonal movement. But enemies would bump into the hard sprites. touch sensitive (ie touch_damage -1) sprites that put Dink back when he touches them might work but probably would be jittery and look weird.
April 20th 2010, 05:59 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
You made a hold button script? In which d-mod if I may ask, I'd love to check that out.
April 20th 2010, 07:40 AM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
Last time I checked, FallDink had some interesting custom movement...
April 20th 2010, 07:53 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
FallDink had a script that added to Dink's y coordinate every x amount of milliseconds making a sort of gravity.

The fact is that in Falldink you can hold directions 7,8, or 9 to float downwards slower than intended. This is because doing so counters against the gravity script he has in place. Not as much as to go against it, but enough to slow down the fall. The same happens when you press directions 1,2,3. You will fall faster than intended as these directions will compliment the gravity.

There's no custom movement here. Only gravity. Also, the platform makes Dink stick to it by setting his y to the same as its own y.
April 20th 2010, 12:54 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Yeah, Rabidwolf is right; I haven't made my own movement for that one, It's just the same old.