CyberDoc
11-25-2003, 08:02 AM
Hi I am rather new to this and was trying to follow the tut1.txt that came with the program. Everything was fine until i got to the point about making the tree talk or scream ouch. No matter what I try I cant get it to work.
In DinkEdit I made sure to select the sprite and hit shift 5 so I could add a script to it. then I made sure to add the code exactly like it is in the tutorial. Did I do something wrong or is the tutorial wrong?
Tutorial Text:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">void hit(void)
{
say("`4Ouch!", current_sprite);
}[/QUOTE]
And here is what my tree.c file looks like
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">void hit(void)
{
say("`4Ouch!", current_sprite);
}[/QUOTE]
Is there something I forgot to add?
In DinkEdit I made sure to select the sprite and hit shift 5 so I could add a script to it. then I made sure to add the code exactly like it is in the tutorial. Did I do something wrong or is the tutorial wrong?
Tutorial Text:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">void hit(void)
{
say("`4Ouch!", current_sprite);
}[/QUOTE]
And here is what my tree.c file looks like
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">void hit(void)
{
say("`4Ouch!", current_sprite);
}[/QUOTE]
Is there something I forgot to add?