Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Splurge on November 09, 2009, 08:26:07 PM
-
I'm working on a kiosk for the office, but am still pretty new at coding in Hollywood. The one thing I'm wondering is how can I move a brush in the background while it continues to display other objects?
I want a scrolling photo as the background of each of the kiosk's pages. My lowtech way of doing things will display and move the brush first before loading the menu on the page instead of constantly moving while the menu is active.
Ideas? Thanks!
-
Just use the main loop. Don't do a single movement, but put it into pices and put it into the mainloop. Something like this:
function my_brushmove()
(your brush moves)
endfuction
SetInterval(1, my_brushmove, n) ;or of course some other function that embeds your brush_moves and the menu things // n being any interval time
;;; "main loop"
Repeat
WaitEvent
Forever ; or until some event