View Single Post
Old 12th January 2004, 19:32   #12
S-uper_T-oast
Forum King
 
S-uper_T-oast's Avatar
 
Join Date: May 2003
Location: Fnord?!
Posts: 2,657
It's easy to do. All you have to is use a custom point count then use equal( to set the locations.
In Init
code:

Xloc1=-.5;//sets the X coordinate of our first point to -.5
Xloc2=.5;//sets the X coordinate of our second point to .5
Yloc1=-.5;//sets the Y coordinate of our first point to -.5
Yloc2=.5;//sets the Y coordinate of our second point to .5


In Perframe
code:

p=0;//reset perpoint counter to 0


In PerPoint
code:

p=p+1;//adds one to out perpoimt counter for every point being drawn
x=equal(p,1)*Yloc1+equal(p,2)*sloc2;//When P equals 1, sets the X coordinate to our Xloc1, and when P equals 2, sets our X coordinate to our Xloc2
y=equal(p,1)*Yloc1+equal(p,2)*Xloc2;//When P equals 1, set our Y coordinate to our Yloc1, and when P equals 2, sets our Y coordinate to our Yloc


You can copy and paste this into a superscope and fiddle with it if you want to. If you are sill confused just tell us what you are having a problem with or you could search the fourms for Superscopes or Per-Point, those might bring up some helpful things.

//edit-Fixed a few little mess-ups and "fixed" format
S-uper_T-oast is offline   Reply With Quote