Dark Bit Factory & Gravity

PROGRAMMING => Purebasic => Topic started by: KrazyK on July 29, 2013

Title: Scroller library
Post by: KrazyK on July 29, 2013
As promised, here's my personal scroller library that I use for my remakes.  It only supports 640 screen width at the moment until I can be bothered to update it as that's all i tend to use anyway.  It can only handle simple sine distortions at the moment too until I find a remake that I need to alter it for.
Compiled using pb 5.20 beta 6.
Take a look at the examples and have a play around with it.

 ;)

Edit:
Updated the library to handle any screen width and a starting sprite number.  see examples.
Title: Re: Scroller library
Post by: ttemper on July 30, 2013
Awesome, will definitely check out your code so I can learn from it (when I get time to code again). Thanks for sharing. :)
Title: Re: Scroller library
Post by: Hotshot on August 07, 2013
I post Kkscroll in PureLibraries >> UserLibraries

then I run your program and I get the errors saying

Line 35: ScrollInt() is not a function, array, list, map or marco

Have I missed somethings?


Title: Re: Scroller library
Post by: Pot Noodle on August 07, 2013
Same here.
Title: Re: Scroller library
Post by: KrazyK on August 08, 2013
I can't see why it won't work for you guys. 
The 'kkscroll' library file should be inside the path,something like my installation path:
'E:\Apps\Purebasic520\PureLibraries\UserLibraries\'   I've also tried this on my installations of v4.51, v5.11 and it works perfectly.

I also have my 2D/3D Starfield library to test too.....
Title: Re: Scroller library
Post by: padman on August 08, 2013
Works for me too. Tested with PB 4.51. ( Nice work btw! :) ) Did you guys restart your IDE after copying the file to the library folder? Otherwise it won't work. ;)
Title: Re: Scroller library
Post by: Hotshot on August 08, 2013
Quote
Did you guys restart your IDE after copying the file to the library folder?

How do you do that because when I put kkscroll in purelibrary folder then i double purebasic ide then run the program......it doesnt work

i must have missed somethings  ::)
Title: Re: Scroller library
Post by: KrazyK on August 08, 2013
The 'kkscroll' library file must go in the '..\UserLibraries\' folder.  Then select Compiler>Restart Compiler from the top menu.

[Edit]
Here are a few new examples from my new version of the scroller and starfield library.

Title: Re: Scroller library
Post by: emook on August 10, 2013
Nice work.

On the Lazy Scroll 64 example, at the end of the text I get an invalid memory access.

I'm using 5.20x86b9.
Title: Re: Scroller library
Post by: KrazyK on August 28, 2013
Update, new version with more effects.  Bin the old library and check out the examples.
Compiled with PB5.20 b10
Title: Re: Scroller library
Post by: inc. on November 14, 2013
tried it too. another problem here:

Title: Re: Scroller library
Post by: Dad1916 on November 23, 2013
On a Mac I copied library to UserLibraries , restarted compiler , then get this error

What was the library compiled on? I'm guessing this library is only usable on Windows 32 bit ?
Title: Re: Scroller library
Post by: Dad1916 on November 23, 2013
Got it working in the end, many thanks. The library is a 32 bit Windows library.
Title: Re: Scroller library
Post by: inc. on October 04, 2014
is it possible to get a fixed version? i can not run it :(
used: PB v4.61 and PB v5.30

PB5.30 --> does not support compressed Libs

thank you
Title: Re: Scroller library
Post by: Hotshot on October 05, 2014
Mine is 5.30 PB and it saying the same things as inc(man above me)

Windows I used are Windows 7 64bit :)
Title: Re: Scroller library
Post by: inc. on October 05, 2014
Got it working in the end, many thanks. The library is a 32 bit Windows library.

how you maneged it ? wanna use it too... or less to see something.
Title: Re: Scroller library
Post by: KrazyK on October 06, 2014
Latest version attached here.  Must be using latest version of PB to work.   :)
 
Title: Re: Scroller library
Post by: inc. on October 06, 2014
finally.
it's working with PB v5.30 x86

is there any possibility to edit the Amplitude or any other values?

i would love to include your Sin into a Demo

does your Lib support alpha transparency png Font/sprites?

thanky you again for the great Job
Title: Re: Scroller library
Post by: Dad1916 on December 04, 2014
PureBasic 5.31 (MacOS X - x64) - Compressed libraries are not supported (KK_Scroller).

Is the lib source available so that it can be compiled cross platform ?