The Dink Network

Anathavia's Profile

Well let's tell something about me than!

I only recently discovered Dink, and I love the fact that you can create your own stories. I never scripted or anything but always wanted to try it sometime but didn't know where to start.

Well I found my start, with all great tutorials here it should not be to hard.

Not to hard?!? Well see that is a bit my problem I make it hard for myself. I got a lot of ideas and to put them into working I can't just slightly edit the standard scripts so it won't be that easy either.

The first script I am trying to make I have been puzzling on for 2 hours now and still not working as I want it so my first D-mod probably is ready in 2027. But I am patient so I will get it done. And I can learn from my mistakes. (well after 2 more hours and some help from magicman it works so maybe it will be 2013 instead of 2027 )

Well I can tell a lot more but if you want to know something just ask me.

Private Message

2010-11-01 16:27:15
peasantfr.gif
Made a script to let dink move to the left until he runs into something. In order to let dink not keep running against something and not reaching the left of the screen I made a loop to keep checking if dink is still moving. If not I just move him left to his current location overwriting the movement to the entire left of the screen. Here is the code I used, but Dink just keeps running against something instead of stopping his movement.

move(1, 4, 0, 0);

loop:

&dinkx = sp_x(1, -1);
wait(10);
&dinkx2 = sp_x(1, -1);

if (&dinkx != &dinkx2)
{
goto loop;
}

move(1, 4, &dinkx2, 0);


The problem is that the wait(10) for some reason doesn't work. I put say lines in between to see when the script stops and if I put a say-line in front of the wait Dink says it, but if I put it after the wait he doesn't say it. So I am pretty sure it has something to do with the waitline, I just don't understand why it doesn't work.

Does anyone know why it does not work (or another way to make it work)? Thanks in advance.

Anathavia has released 1 file

TitleCategoryAvgUpdated
Animated Waterfall TilesDevelopment, GraphicsGood 7.2August 10th, 2010