The Dink Network

created sprite visability

October 1st 2009, 07:06 AM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Hiya
Can anyone tell me how to get a "create_sprite" to be visible - I have copied the cut scene script from the intro to dmodding and changed some of Dinks spinning round and such - he comes in and looks where I told him to but the sprite the script is supposed to create talks but can't be seen. I have it set to (1,0) Everything works great but the person it is supposed to create seems to be coming from a wall in the corner and is not visible... how do I fix this anyone??
October 1st 2009, 08:25 AM
dinkdead.gif
If the text is just up in the corner then the sprite probably isn't there properly... can you copy your script here? Would make it easier to see where the problem is
October 1st 2009, 08:28 AM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Yup - please 'speak' real slow tho - I am a total beginner and ta heaps

void main( void )
{
sp_nodraw(1,1);
int &var = create_sprite(400,190,16,371,1);
sp_base_walk(&var,370);
sp_speed(&var,1);
wait(1);
freeze(1);
freeze(&var);
dink_can_walk_off_screen(1);
sp_x(1,270);
sp_y(1,480);
sp_nodraw(1,0);
move_stop(1,8,180,1);
wait(250);
sp_dir(1,6);
wait(200);
say_stop("Wha bla bla..............
October 1st 2009, 08:44 AM
dinkdead.gif
Just tested that and it worked fine.

Ummm... don't really know what to suggest now

Edit: Are you using &var for anything else, like a global variable maybe?
October 1st 2009, 08:53 AM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Hmm... maybe a reboot would work - I also cant see why it isnt working. Do you get a person sprite showing? And nup not using that elsewhere that I know of lol - the rest of the scripts I have made are REAL basic!! Baby steps hehe
Will reboot in the morning cuz I am brain dead from tryin to figure this out.
Thanks for testin it 4 me Sparrowhawk
October 1st 2009, 09:05 AM
dinkdead.gif
Yep the blue guy showed up in the right place and was talking fine.

One tip: maybe switch the freezes and the wait(1) around (or take the wait out completely), because otherwise he's sometimes facing the wrong way by the time Dink appears.
October 1st 2009, 06:30 PM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
hmm... I cant see the blue guy at all (wanted a red girl anyway lol) but the chat still comes from the corner *sigh*

Also if I switch the wait or take it out - Dink stays just off screen and freezes there (I just see the top of his head)

<Throws toys out of the cot> Grrrrrrrrr Might just have to make a real sprite and make that sucker talk Thanks anyhoo
October 1st 2009, 09:42 PM
pillbug.gif
pillbug
Peasant He/Him United States
Love! True love! 
Try changing the sprite name to something random that you KNOW isn't being used as a variable (sorry if you've already checked, doesn't hurt to try though).
October 1st 2009, 10:29 PM
spike.gif
This sounds a lot like the classic preload bug. In earlier versions of Dink, created sprites would sometimes be invisible because their graphic sequence wasn't loaded into memory (yet). This could be fixed by adding preload_seq()s in the script. This problem isn't supposed to be in version 108, but it shouldn't hurt to try. Adding this to the beginning of the script:
preload_seq(371);
October 2nd 2009, 06:40 PM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Pillbug - Not sure what u mean - there is no sprite as this script is supposed to make one, I have changed the number to the actual person/sprite I want there but that didnt work either so I thought I would get it going with the blue guy and then just change the sprite number... so far aint happenin

Thanks Scratcher - but that didn't seem to do anything either... *scratches head*