I'm a new Rev programmer, which I think will become apparent very quickly as I ask questions.
Basically, I'm interested in writing games where multiple objects are moving simultaneously. I intend to drive this movement within a repeat loop, which is contained within a mouseUp handler. For example,
Code: Select all
On mouseUp
.
.
.
Repeat while exit_has_not_been_requested
-- do a bunch of stuff with graphic objects
end Repeat
.
.
.
end mouseUp
Code: Select all
on keyDown some_funky_key
-- make the graphic objects do stuff
end keyDown
Also, should the keyDown handler be coded into the script of the card on which the graphic objects reside? If so, how would one make sure that card has "focus" so that Rev knows to require that the card script handle the keyboard event?
Thanks!
---Tom Nally, New Orleans
[edit: some spelling corrected; other errors probably missed...]