was wondering...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Does anyone know how to get a background image to scroll using Pete E.'s
modex utility?  I have gotten the background I want to display... but have a
hard time understanding what I need to do to get the next chunk of data and
move it into the screen.  Here is some code...

--try to write over a spot on the visible screen
--source screen is named "monty"
--destination is "screen"
constant chunk = new_command(copy, {0,0,width,height,0,0})

set_source_pos(chunk, {dx,0})
set_dest_pos(screen, {0,0})

I am having a hard time understanding how to use this constant.  It bears
some resemblance to how the constants are used in the win32lib, which I
can't quite understand either.  You can't define the constant in a
procedure,  I do know how you can call the constant, such as with
call(chunk) in this case, but a constant is an unchanging amount right?  So
once you define the constant as having one set of data in it, you cannot
redefine it right?  I can't call it from a procedure...
I have a feeling that I should be able to maybe use

set_source_pos(chunk, {dx,0})
set_dest_pos(screen, {0,0})
call(chunk)

and that would move a chunk of bitmap to the visible screen.


Help I'm stuck!
Any help would be appreciated.
Monty in Oregon

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu