Desktop FX

Share your advanced PureBasic knowledge/code with the community.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

PB wrote:...Any better tip to fix this?
Of course:
look at the line:

Code: Select all

If Angle<0 Or Angle>4/5*#PI:Break:EndIf
As you can see the loop is broken if 4/5*#PI is reached.
If for example you write #PI/2 instead of 4/5*#PI, then when plane is just horizontal it bounds. :)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Ah, thanks... that's how I prefer it. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply