| Author | Topic: new Version Wants (Read 293 times) |
shadow008 Posts a lot
    member is offline
![[avatar]](http://www.wreckamovie.com/system/shot_medias/0000/1710/ninja_guitar_duel.jpg)
NINJAS WITH GUITARS! (you will never be as awsome as this)
Joined: Feb 2009 Gender: Male  Posts: 376
|  | Re: new Version Wants « Reply #15 on Nov 2, 2009, 8:26pm » | |
that will do. thanks!
| OK
hint: (look at it sideways)
|
|
DJLinux Global Moderator
     member is offline
\_/?
Joined: Apr 2008 Gender: Male  Posts: 486 Location: Germany NRW Essen
|  | Re: new Version Wants « Reply #16 on Nov 4, 2009, 9:55am » | |
const DIS = 0 const DIS_2 = 1 const DIS_X = 1 const DIS_Y = 2
function distance#(x1,y1,x2,y2,what) dim xdif=x2-x1 dim ydif=y2-y1 if (what=DIS_X) then return xdif elseif (what=DIS_Y) then return ydif elseif (what=DIS_2) then return xdif*xdif + ydif*ydif else return SQR(xdif*xdif + ydif*ydif) end if endfunction
dim x,y,a,b,Xd#,Yd#,d#,d2#
'give them some values x = 2 y = 4 a = 7 b = 8
'return multiple values like so... d# = distance#(x,y,a,b,DIS) d2# = distance#(x,y,a,b,DIS_2) Xd# = distance#(x,y,a,b,DIS_X) Yd# = distance#(x,y,a,b,DIS_Y)
printr "xdif " + Xd# printr "ydif " + yd# printr "distance " + d# printr "squared " + d2#
|
(sorry for my bad English) I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.
|
|
shadow008 Posts a lot
    member is offline
![[avatar]](http://www.wreckamovie.com/system/shot_medias/0000/1710/ninja_guitar_duel.jpg)
NINJAS WITH GUITARS! (you will never be as awsome as this)
Joined: Feb 2009 Gender: Male  Posts: 376
|  | Re: new Version Wants « Reply #17 on Nov 4, 2009, 2:10pm » | |
that way took me a little bit longer to understand, but it works. Thanks!
| OK
hint: (look at it sideways)
|
|
Darkjester Posts a bit
   member is offline
![[avatar]](http://www.avatarsdb.com/avatars/help.gif)
Joined: Jun 2009 Gender: Male  Posts: 173
|  | Re: new Version Wants « Reply #18 on Nov 25, 2009, 12:15pm » | |
Tom should make it so basic4gl will save the current file when you click the go button(that way if it crashes you dont lose all that work) And A redo button, and fix the ide glitches (there are a couple i can point out) and Block Commenting -darkjester
| -I love Krystal <3
http://joshkoert.wikispaces.com/ |
|
shadow008 Posts a lot
    member is offline
![[avatar]](http://www.wreckamovie.com/system/shot_medias/0000/1710/ninja_guitar_duel.jpg)
NINJAS WITH GUITARS! (you will never be as awsome as this)
Joined: Feb 2009 Gender: Male  Posts: 376
|  | Re: new Version Wants « Reply #19 on Nov 25, 2009, 12:16pm » | |
how about FindNextFolder(dir$) that finds all folders in a certain directory instead of just files?
| OK
hint: (look at it sideways)
|
|
crazynate Global Moderator
     member is offline
![[avatar]](http://crazynatestudios.wikispaces.com/space/showlogo/1252275790/logo.png)
Joined: Jan 2009 Gender: Male  Posts: 205 Location: somwhere
| | |
|