Search found 12 matches

by phipslk
Tue Jan 30, 2024 7:26 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

Re: yet another sinus scroller question

a little update for speed winning. Now the starfield is only drawn when visible on screen. gives a little speedup, but still too demanding for an Amiga 1200 with Pistorm... No use of Cls(), every pixel (at least I hope so ;-) ) only drawn when on screen. ; starfield ;@REQUIRE planarama.hwb @DISPLAY ...
by phipslk
Mon Jan 29, 2024 7:35 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

Re: yet another sinus scroller question

I changed the code along your tips, so I don't have to use Cls() anymore. It is faster, that's true. But still too demanding for a real machine. Even in high speed emulation the demo is far to slow.... ; starfield ;@REQUIRE planarama.hwb @DISPLAY {Width = 640, Height = 500, Mode = "FullScreen&q...
by phipslk
Fri Jan 26, 2024 9:20 pm
Forum: Code snippets area
Topic: Smooth scroller
Replies: 4
Views: 9142

Re: Smooth scroller

Hey, thank you for sharing your code! this is awful! I saw in your code that you precalculated a sin wave for the scroller, is this the way you thought to implement it? @APPAUTHOR "Zoltan Lazar" @APPTITLE "Demoscroller object" @APPDESCRIPTION "Flickering free text scroller o...
by phipslk
Mon Dec 11, 2023 5:59 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

Re: yet another sinus scroller question

thank you for your help! SelectBrush() enlightend me ;-) this one works even on an Amiga (with PiStorm, I admit) fine.
I use Cls() because I did a star field moving in background. Is it really better to clear only the "old" pixels even from starfield instead of using Cls()?
by phipslk
Sun Dec 03, 2023 8:54 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

Re: yet another sinus scroller question

thanks for this good explanations. I think, just rendering the letters that are on the screen is most effective, better than rendering the whole scrolltext at once and move it across the screen. that leads me to the next problem :-) how to realize that? I'd not like to use sprites as that don't work...
by phipslk
Fri Dec 01, 2023 10:15 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

Re: yet another sinus scroller question

okay, so here is a working code. in fact, it's not a sinus scroller but a cosinus scroller. if anyone can give me some hints how to manipulate the sinus/cosinus wave of the scroller, I'd be thankful! Is there a maximum length of the scrolltext as the routine just moves it out of the screen just coun...
by phipslk
Thu Nov 30, 2023 6:32 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

Re: yet another sinus scroller question

jPV wrote: Thu Nov 30, 2023 6:15 pm Check your Y calculations, I think your Y values jump wildly and makes it look flickering when it technically doesn't flicker (try with a steady Y value).
I just had the same idea when I took time down to 1000/6. Okay, probably my sinus routine is not very good. As are my math talents :-)
by phipslk
Thu Nov 30, 2023 5:26 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

Re: yet another sinus scroller question

thanks for your explanations! but when I reduce the TIME value for SetInterval() then the scroller is still flickering. How can I achieve it to scroll smoother? I looked through the Cracktros but they all use sprites/brushes as it seems and not Text. And I am still working on understanding the code ...
by phipslk
Tue Nov 28, 2023 6:57 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 4351

yet another sinus scroller question

Hi, I am new to Hollywood and tried to make a sinus scroller. my code seems to work but it's hell to fast... How to slow down? Wait(x) doesn't help, it keeps flickering. ; sinus scroller @DISPLAY 1, {width = 360, height = 284} t$ = " * Hi everybody! * " .. "This is a first try of codi...
by phipslk
Thu Nov 02, 2023 8:28 pm
Forum: General plugin questions
Topic: Basic SQL / SQLite3 questions
Replies: 4
Views: 2998

Re: Basic SQL / SQLite3 questions

Not quite yet, sorry :-)

Perhaps it's easier if I explain what I want to achieve. I have a RapaGUI window and user input should be stored in the sql database being read from the GUI items values, and vice versa.