now does anybody know how to simply draw a line from one actor to another?
Since I got con-fuzzled with the canvas stuff, I can't figure it out
int xc, yc;
//Clear the screen
erase(0, 0, 0, 0);
setpen(255, 253, 251, 0, 1);
//From actor1
xc = player.xscreen;
yc = player.yscreen;
screen_to_actor(&xc, &yc);
moveto(xc, yc);
//To actor2
xc = player2.xscreen;
yc = player2.yscreen;
screen_to_actor(&xc, &yc);
lineto(xc, yc);
erase(0, 0, 0, 1);
Users browsing this forum: No registered users and 1 guest