The Dink Network

ThENeWGuY's Profile

I'm the new guy who comes out of nowhere and tries to do somewhat big things. Well, actually, I'm not so new to Dink. I've even looked at the Dink Network a lot in the past years. But I was always a lurker! But any Starcraft player knows not to underestimate them...

Private Message

2013-12-28 07:33:30
goblins.gif
Success! I made a new script called "blocker.c" and it basically just moves Dink to the proper location if he passes the bottom right edge. I put the script on a big blue hole sprite included with Dink and placed the sprite right where I don't want Dink to be able to move, as if it was a hard sprite. Here's the script (requires &jug global variable or to change to ints):

//if dink touches a sprite with this script, he will be moved to slightly to the left of that sprite
//essentially used to prevent Dink from passing glitchy edges on screenlocked screens
//designed to be used with the big blue hole sprite for best positioning
void main( void )
{
	//allow touch procedure
	sp_touch_damage(&current_sprite, -1);
}
void touch( void )
{
	//get Dink's position
	&jug = sp_x(&current_sprite, -1);
	//subtract it by the distance from the hole's x to the hole's side
	&jug -= 25;
	//move Dink to the new position (which is directly to the left of the hole)
	sp_x(1, &jug);
}


Thanks very much Paul! It doesn't solve the bottom of the screen hiding from touch damage thing but I think I'll just leave that in. It isn't a very big deal anyways. I'll just make sure that if there are any battles I absolutely don't want the player to be able to hide from touch damage on I won't make a bottom side open with a screenlock.

Thanks guys.

ThENeWGuY has released 3 files

TitleCategoryAvgUpdated
Dink Hotel (The)D-Mod, RompGood 7.1April 2nd, 2019
Dink Script Improvement PackD-Mod, Development, Miscellaneous, Add-OnExceptional 9.0February 25th, 2013
Dink Exploding Missiles SuperfixDevelopment, MiscellaneousN/AJanuary 12th, 2013

ThENeWGuY has written 11 reviews

TitleFileTypeScoreDate
Very Unfinished, but Cool Tech and Ideas Relic Hunter (Demo)NormalGood 7.3November 16th, 2023
The Best Way to Script a Dmod DinkC Syntax Highlighting for Notepad++NormalExceptional 9.8February 10th, 2018
A Fun Little Mod AtonementNormalGood 7.0September 16th, 2015
Egorapture Dink and the ChinsNormalFair 6.6September 16th, 2015
Could be funny if there was more to it Pokemon: Bible VersionNormalHorrible 1.6September 16th, 2015
Would Enjoy a Full Game of This Turn-Based FightNormalFair 6.0September 16th, 2015
Super short, but that does not mean it is bad Happy Sunshine LandNormalFair 6.0August 17th, 2013
Amateur, but still fun Legend of the Ancients: The CaptureNormalGood 7.1August 17th, 2013
This Skeleton is a Mixed Bag Skeleton SFeaturedGood 7.0February 18th, 2013
A Great and Varied Collection of Midis Christiaan's Ultimate MIDI OeuvreFeaturedExceptional 9.4February 15th, 2013
Skull really put his heart into this DMOD Historical Hero II: ArmageddonFeaturedGood 8.9February 7th, 2013