• Welcome to Dark Bit Factory & Gravity.
 

Scroller library

Started by KrazyK, July 29, 2013

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

KrazyK

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.
Challenge Trophies Won:

ttemper

Awesome, will definitely check out your code so I can learn from it (when I get time to code again). Thanks for sharing. :)

Hotshot

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?



Pot Noodle


KrazyK

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.....
Challenge Trophies Won:

padman

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. ;)
Challenge Trophies Won:

Hotshot

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  ::)

KrazyK

#7
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.

Challenge Trophies Won:

emook

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.
----

R Tape loading error, 0:1

KrazyK

#9
Update, new version with more effects.  Bin the old library and check out the examples.
Compiled with PB5.20 b10
Challenge Trophies Won:

inc.

tried it too. another problem here:

currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Dad1916

#11
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 ?

Dad1916

Quote from: Dad1916 on November 23, 2013
Got it working in the end, many thanks. The library is a 32 bit Windows library.

inc.

#13
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
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Hotshot

Mine is 5.30 PB and it saying the same things as inc(man above me)

Windows I used are Windows 7 64bit :)

inc.

Quote from: Dad1916 on November 23, 2013
Quote from: Dad1916 on November 23, 2013
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.
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

KrazyK

Latest version attached here.  Must be using latest version of PB to work.   :)

Challenge Trophies Won:

inc.

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
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Dad1916

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 ?