anykey/mouse button down not behaving as expected
Posted: Sun Feb 10, 2008 4:28 am
I wrote a little test to demonstrate some unexpected behavior.
I want to display a region, then when the user presses any key, or clicks the mouse button, I want to move the view to another region. The idea is something like a splash screen or dialog which has to be "acknowledged" in some way.
There are two regions, with different text actors ("screen 1", and "screen 2"); and a third text actor to just report events.
Anyway, it isn't working as expected. This file has three behaviors:
1) any key moves view.y+=480 in it's own script action
2) left mouse button on the text does the same in it's own script action
3) right mouse button calls a global function to change the view.y+=480
pressing any key takes me to a blank screen.
left clicking the screen 1 text takes me to screen 2, which is what I would expect.
right clicking screen 1 doesn't seem to call the global function at all, and nothing happens. The text actor doesn't even get changed.
I have GE Pro v1.3.9 (I think it was actually 1.3.9a).
Can anyone explain this to me?
I want to display a region, then when the user presses any key, or clicks the mouse button, I want to move the view to another region. The idea is something like a splash screen or dialog which has to be "acknowledged" in some way.
There are two regions, with different text actors ("screen 1", and "screen 2"); and a third text actor to just report events.
Anyway, it isn't working as expected. This file has three behaviors:
1) any key moves view.y+=480 in it's own script action
2) left mouse button on the text does the same in it's own script action
3) right mouse button calls a global function to change the view.y+=480
pressing any key takes me to a blank screen.
left clicking the screen 1 text takes me to screen 2, which is what I would expect.
right clicking screen 1 doesn't seem to call the global function at all, and nothing happens. The text actor doesn't even get changed.
I have GE Pro v1.3.9 (I think it was actually 1.3.9a).
Can anyone explain this to me?