プレイ日記
Mike Bluerobin2
I need help. In the DPOLY DEF (which should draw a regular polygon), using GLINE works perfectly, but using my own DLINE DEF (which should draw a thicker line using GCOPY) results in a mess of lines. Using DLINE seperatly worked before so I'm confused :/ Even more, upon using DLINE, GLINE doesn't do the correct line either.
3そうだね
プレイ済み
返信[1]
親投稿
OlOOlOOl pi_r_round
Because DX, DY, etc are initialized outside the DEF, the variables with these same names inside the DEF are assumed to refer to the global ones, not local variables that happen to have the same names.
0そうだね
プレイ済み
返信[2]
親投稿
Mike Bluerobin2
They're not, I checked. I even changed the variables in DLINE so they don't match with the ones in DPOLY, but still, no difference. Thanks for the reply though :)
0そうだね
プレイ済み
返信[3]
親投稿
Mike Bluerobin2
oh wait, got it. it was the vatiable I all along.
0そうだね
プレイ済み
返信[4]
親投稿
NagatoYuki newtonyic1
Mike could you do a very short program,like ten lines showing how to do a simple polygon
1そうだね
プレイ済み
返信[5]
親投稿
Mike Bluerobin2
It's really just a bunch of trig functions. Here is a demo program showing how to draw a regular polygon, set the amount of sides, position, rotation, etc. If perhaps you need something more advanced such as 3D polygons then thats a little too much out of my league c:. Hope it helps!
0そうだね
プレイ済み
返信[6]
親投稿
NagatoYuki newtonyic1
sorry that's what i meant a 3d polygon
0そうだね
プレイ済み