Arghhhh.....!!!
I know how to warp dink to another screen, I did this before and it worked, but now I really don't get it:
void main(void)
{ sp_touch_damage(¤t_sprite, -1);
}
void touch(void)
{
freeze(1);
If(&mystory < 13)
{
move_stop(1, 4, 500, 1);
sp_dir(1, 6);
say_stop("It's locked", 1);
say_stop("There must be a key somewere", 1);
say_stop("Maybe a bonca swollowed it", 1);
unfreeze(1);
}else
{
fade_down();
script_attach(1000);
&player_map = 170;
sp_x(1, 100);
sp_y(1, 200);
load_screen();
draw_screen();
draw_status();
playsound(39,22050,0,0,0);
fade_up();
unfreeze(1);
kill_this_task();
}
}
I attached this script to a door. when &mystory<13 everything works fine. When &mystory=13(dink found the key), it should warp it to screen 170. The problem is that it fades down and does nothing after(it doesn't play the sound). If I delete the fade_down() command everything works fine, but I want to make dink say something while the screen is black.
void main(void)
{ sp_touch_damage(¤t_sprite, -1);
}
void touch(void)
{
freeze(1);
If(&mystory < 13)
{
move_stop(1, 4, 500, 1);
sp_dir(1, 6);
say_stop("It's locked", 1);
say_stop("There must be a key somewere", 1);
say_stop("Maybe a bonca swollowed it", 1);
unfreeze(1);
}else
{
fade_down();
script_attach(1000);
&player_map = 170;
sp_x(1, 100);
sp_y(1, 200);
load_screen();
draw_screen();
draw_status();
playsound(39,22050,0,0,0);
fade_up();
unfreeze(1);
kill_this_task();
}
}
I attached this script to a door. when &mystory<13 everything works fine. When &mystory=13(dink found the key), it should warp it to screen 170. The problem is that it fades down and does nothing after(it doesn't play the sound). If I delete the fade_down() command everything works fine, but I want to make dink say something while the screen is black.
- You can remove the draw_status();
- Furthermore it could be a good idea to add a sp_touch_damage(¤t_sprite,0); after your else command. (This is probably causing the problem)
- Furthermore it could be a good idea to add a sp_touch_damage(¤t_sprite,0); after your else command. (This is probably causing the problem)
It worked. Thanks!
another arrrgh question...
I want to put in a sprite, but the program (EasyD.C etc.) always asks me for the frame or sequence, cause I can se teh frames only in the sprite selector.
What ARE frames and sequences?
I want to put in a sprite, but the program (EasyD.C etc.) always asks me for the frame or sequence, cause I can se teh frames only in the sprite selector.
What ARE frames and sequences?

All the graphics in the game have a sequence and a frame. Every sequences has frames. It's a way of giving all the graphics a number. A sequence can have all kinds of bitmap but they usually have similar graphics grouped together (like all grass, all flowers, all chairs, etc). A sequence is also a way of creating an animation: all the graphics in the sequence are then part of an animation, like a walking Dink, a fireball, a fire or whatever.
So for example, to create a sprite, you'll need to specify what it looks like. You do this by telling what bitmap it is. So you need its sequence and its frame. For example, trees can be found in sequence 32. The first frame is the burnable tree. To create this as a sprite, you do:
create_sprite(100, 100, 0, 32, 1);
or you use Easy DinkC where you give 32 as sequence and 1 as frame. (the other numbers are x-coordinate, y-coordinate and brain)
So for example, to create a sprite, you'll need to specify what it looks like. You do this by telling what bitmap it is. So you need its sequence and its frame. For example, trees can be found in sequence 32. The first frame is the burnable tree. To create this as a sprite, you do:
create_sprite(100, 100, 0, 32, 1);
or you use Easy DinkC where you give 32 as sequence and 1 as frame. (the other numbers are x-coordinate, y-coordinate and brain)
i have a third arghhhhhhhh in WDE i want to look at a certain graphic and find the sequence and fraame but on the lower status bar it just flashes the number for a millisecond is there a way that i can freeze it or slow down the time it flashes?
You can just hover the mouse over a graphic and it'll display the sequence and frame in the lowerleft corner... it shouldn't flash.. 

In WinDinkEdit it flashes for me too, but I can read it.
Just move the mouse over the sprite, as long as the mouse is moving the text is displayed (that's my experience).