Page 2 of 2

Re: Purebasic Amiga Demo?

Posted: Tue Jun 01, 2010 10:46 pm
by Swos2009
It is possible to do this

like positions of starfields inside the rainbow bars mean starfields can go under 400 to 700.

Code: Select all

; Generate the stars
For i=0 To num_stars-1    
  x(i,2)=Random(1000)+10  ; X
    y=Random(400,700)  ; Positions Start y=400 n Finsh y =700
   x(i,3)=Random(5)+1    ; Speed 
next 
instead of doing this

Code: Select all

; Generate the stars
For i=0 To num_stars-1     
   x(i,2)=Random(1000)+10  ; X
   y(i,2)=Random(570)+ 1 ; Y
   x(i,3)=Random(5)+1    ; Speed
Next
here idea

Hiya all = Text Scrollings
______ = Rainbow Bar
* = Starfields

Code: Select all

                                           Hiya all and welcome                                     
______________________________________________________________
 *          *                   *                     *
   *                *                   *                       *
 *          *                 *              *           *
______________________________________________________________

Re: Purebasic Amiga Demo?

Posted: Tue Jun 01, 2010 11:31 pm
by PureLust

Code: Select all

y = 400 + Random(300)  ; Positions Start y=400 n Finsh y =700

Re: Purebasic Amiga Demo?

Posted: Wed Jun 02, 2010 10:49 am
by Swos2009
Thanks PureLust :mrgreen: and that just what I want :)