Author Topic: Scroller library  (Read 11136 times)

0 Members and 1 Guest are viewing this topic.

Offline KrazyK

  • Amiga 1200
  • ****
  • Posts: 390
  • Karma: 131
    • View Profile
    • KrazyK Remakes
Scroller library
« 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.
« Last Edit: July 30, 2013 by KrazyK »
Challenge Trophies Won:

Offline ttemper

  • Amiga 1200
  • ****
  • Posts: 267
  • Karma: 7
    • View Profile
Re: Scroller library
« Reply #1 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. :)

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Scroller library
« Reply #2 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?



Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Scroller library
« Reply #3 on: August 07, 2013 »
Same here.

Offline KrazyK

  • Amiga 1200
  • ****
  • Posts: 390
  • Karma: 131
    • View Profile
    • KrazyK Remakes
Re: Scroller library
« Reply #4 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.....
Challenge Trophies Won:

Offline padman

  • Senior Member
  • Pentium
  • ********
  • Posts: 990
  • Karma: 260
    • View Profile
Re: Scroller library
« Reply #5 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. ;)
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Scroller library
« Reply #6 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  ::)

Offline KrazyK

  • Amiga 1200
  • ****
  • Posts: 390
  • Karma: 131
    • View Profile
    • KrazyK Remakes
Re: Scroller library
« Reply #7 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.

« Last Edit: August 09, 2013 by KrazyK »
Challenge Trophies Won:

Offline emook

  • C= 64
  • **
  • Posts: 94
  • Karma: 12
    • View Profile
Re: Scroller library
« Reply #8 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.
----

R Tape loading error, 0:1

Offline KrazyK

  • Amiga 1200
  • ****
  • Posts: 390
  • Karma: 131
    • View Profile
    • KrazyK Remakes
Re: Scroller library
« Reply #9 on: August 28, 2013 »
Update, new version with more effects.  Bin the old library and check out the examples.
Compiled with PB5.20 b10
« Last Edit: August 28, 2013 by KrazyK »
Challenge Trophies Won:

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 276
  • Karma: 25
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: Scroller library
« Reply #10 on: November 14, 2013 »
tried it too. another problem here:

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

Offline Dad1916

  • Atari ST
  • ***
  • Posts: 112
  • Karma: 3
    • View Profile
Re: Scroller library
« Reply #11 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 ?
« Last Edit: November 23, 2013 by Dad1916 »

Offline Dad1916

  • Atari ST
  • ***
  • Posts: 112
  • Karma: 3
    • View Profile
Re: Scroller library
« Reply #12 on: November 23, 2013 »
Got it working in the end, many thanks. The library is a 32 bit Windows library.

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 276
  • Karma: 25
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: Scroller library
« Reply #13 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
« Last Edit: October 05, 2014 by inc. »
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Scroller library
« Reply #14 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 :)

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 276
  • Karma: 25
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: Scroller library
« Reply #15 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.
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline KrazyK

  • Amiga 1200
  • ****
  • Posts: 390
  • Karma: 131
    • View Profile
    • KrazyK Remakes
Re: Scroller library
« Reply #16 on: October 06, 2014 »
Latest version attached here.  Must be using latest version of PB to work.   :)
 
Challenge Trophies Won:

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 276
  • Karma: 25
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
Re: Scroller library
« Reply #17 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
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline Dad1916

  • Atari ST
  • ***
  • Posts: 112
  • Karma: 3
    • View Profile
Re: Scroller library
« Reply #18 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 ?