Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / DrawLine? What are the parameters?

Author
Message
Gibbon28
11
Years of Service
User Offline
Joined: 22nd Oct 2012
Location: Derbyshire, UK
Posted: 2nd Jan 2013 15:12
Ive given up on guessing the paramerters for this newly added function to 108b3 and decided TGC should have really given us them from the start, it makes life alot easier.

Any know how to use this command?

Thanks
Andy
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 2nd Jan 2013 18:31
If you look in the Wrapper.h file in IDE/common/include, it shows that the prototype is: void DrawLine(float x, float y, float x2, float y2, UINT red, UINT green, UINT blue)

Make sure not to include the words 'float' and 'UINT' in your call (this is a mistake being made by some new programmers upon reading the help files).

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 3rd Jan 2013 18:06
The next beta will included updated help files, sorry about that. Acient Lady is correct about the parameters, it draws a line from x,y to x2,y2 in the color red,green,blue.

Login to post a reply

Server time is: 2024-05-06 13:23:54
Your offset time is: 2024-05-06 13:23:54