Welcome, Guest. Please login or register.

Author Topic: Hollywood Designer MoveBrush question  (Read 962 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline SplurgeTopic starter

  • Jr. Member
  • **
  • Join Date: Feb 2008
  • Posts: 90
    • Show only replies by Splurge
    • http://www.neogeofanclub.com
Hollywood Designer MoveBrush question
« 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!
SAM440Flex 800MHz 1GB, OS4.1
A3000D/040 24MB OS3.9, Prometheus/Ethernet/Voodoo
A1200/030 128MB, 20GB OS3.1
A2500/030 OS3.1
A4000/040 dead.. again
 

Offline zylesea

  • Hero Member
  • *****
  • Join Date: Feb 2006
  • Posts: 638
    • Show only replies by zylesea
    • http://www.via-altera.de
Re: Hollywood Designer MoveBrush question
« Reply #1 on: November 09, 2009, 11:18:15 PM »
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